Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.0 upgrade] Metricbeat BWC index template rejected because rabbitmq.node.name alias refers to itself #11275

Closed
cjcenizal opened this issue Mar 15, 2019 · 3 comments

Comments

@cjcenizal
Copy link

To reproduce:

  1. Set up multi-node 6.7 cluster. Perform rolling upgrade to 7.0.
  2. Set migration.enabled: true in metricbeat config.
  3. Run sudo ./metricbeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'

Elasticsearch rejects the request with error:

{
  "error":{
    "root_cause":[
      {
        "type":"remote_transport_exception",
        "reason":"[2][127.0.0.1:9301][indices:admin/template/put]"
      }
    ],
    "type":"illegal_argument_exception",
    "reason":"Invalid [path] value [rabbitmq.node.name] for field alias [rabbitmq.node.name]: an alias cannot refer to itself."
  },
  "status":400
}

CC @bhavyarm I think you were seeing this error at some point, too.

@cjcenizal
Copy link
Author

I just tried doing this with a 7.0 stack to set a baseline, and ran into the same error. Here's my metricbeat config:

setup.dashboards.enabled: true

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression

setup.kibana:
  host: "localhost:5601"

output.elasticsearch:
  hosts: ["localhost:9200"]

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

migration.enabled: true

Here's what I ran in the command line: sudo ./metricbeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]' -E setup.template.settings.index.number_of_shards=5.

The result was an identical error to the one above. Possibly something misconfigured in the index template?

@cjcenizal cjcenizal changed the title [7.0 upgrade] Metricbeat index template rejected because rabbitmq.node.name alias refers to itself [7.0 upgrade] Metricbeat BWC index template rejected because rabbitmq.node.name alias refers to itself Mar 15, 2019
@bhavyarm
Copy link

bhavyarm commented Mar 17, 2019

yep logged it here too :) #11271

@ruflin
Copy link
Member

ruflin commented Mar 18, 2019

Same as #11271 and will be closed by #11284. Closing in favor of #11271

@ruflin ruflin closed this as completed Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants