periodic stein fs037 updates tripleo-ansible-inventory: error: unrecognized arguments: --undercloud-connection

Bug #1824500 reported by Quique Llorente
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Quique Llorente

Bug Description

http://logs.rdoproject.org/openstack-periodic/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-centos-7-multinode-1ctlr-featureset037-updates-stein/a97bce2/logs/undercloud/home/zuul/overcloud_update_prepare_containers.log.txt.gz
2019-04-12 06:42:28 | [Fri Apr 12 06:42:28 UTC 2019] Start preparing container images for overcloud update
2019-04-12 06:42:30 | 2019-04-12 06:42:30.247 109929 INFO osc_lib.shell [-] command: overcloud external-update run -> tripleoclient.v1.overcloud_external_update.ExternalUpdateRun (auth=True)
2019-04-12 06:42:30 | 2019-04-12 06:42:30.248 109929 INFO osc_lib.clientmanager [-] Using auth plugin: password
2019-04-12 06:42:30 | 2019-04-12 06:42:30.248 109929 DEBUG osc_lib.clientmanager [-] Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://192.168.24.1:5000/', 'password': '***', 'project_domain_name': 'Default'} setup_auth /usr/lib/python2.7/site-packages/osc_lib/clientmanager.py:157
2019-04-12 06:42:30 | 2019-04-12 06:42:30.251 109929 DEBUG osc_lib.clientmanager [-] Get auth_ref auth_ref /usr/lib/python2.7/site-packages/osc_lib/clientmanager.py:201
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun [-] Exception occured while running the command: InvalidConfiguration: Failed to generate inventory: Unexpected error while running command.
2019-04-12 06:42:31 | Command: /usr/bin/tripleo-ansible-inventory --stack overcloud --ansible_ssh_user tripleo-admin --undercloud-connection ssh --static-yaml-inventory /home/zuul/tripleo-ansible-inventory.yaml
2019-04-12 06:42:31 | Exit code: 2
2019-04-12 06:42:31 | Stdout: u''
2019-04-12 06:42:31 | Stderr: u'usage: tripleo-ansible-inventory [-h]\n [--ansible_python_interpreter ANSIBLE_PYTHON_INTERPRETER]\n [--ansible_ssh_user ANSIBLE_SSH_USER]\n [--auth-token AUTH_TOKEN]\n [--auth-url AUTH_URL] [--cacert CACERT]\n [--config-dir DIR] [--config-file PATH]\n [--debug] [--host HOST] [--list] [--nodebug]\n [--nolist] [--password ***\n [--plan PLAN] [--project-name PROJECT_NAME]\n [--stack STACK]\n [--static-yaml-inventory STATIC_YAML_INVENTORY]\n [--username USERNAME]\ntripleo-ansible-inventory: error: unrecognized arguments: --undercloud-connection ssh\n'
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun Traceback (most recent call last):
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun File "/usr/lib/python2.7/site-packages/tripleoclient/command.py", line 30, in run
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun super(Command, self).run(parsed_args)
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun return super(Command, self).run(parsed_args)
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun File "/usr/lib/python2.7/site-packages/cliff/command.py", line 184, in run
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun return_code = self.take_action(parsed_args) or 0
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_external_update.py", line 97, in take_action
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun parsed_args.static_inventory, parsed_args.ssh_user, stack)
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun File "/usr/lib/python2.7/site-packages/tripleoclient/utils.py", line 954, in get_tripleo_ansible_inventory
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun raise exceptions.InvalidConfiguration(message)
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun InvalidConfiguration: Failed to generate inventory: Unexpected error while running command.
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun Command: /usr/bin/tripleo-ansible-inventory --stack overcloud --ansible_ssh_user tripleo-admin --undercloud-connection ssh --static-yaml-inventory /home/zuul/tripleo-ansible-inventory.yaml
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun Exit code: 2
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun Stdout: u''
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun Stderr: u'usage: tripleo-ansible-inventory [-h]\n [--ansible_python_interpreter ANSIBLE_PYTHON_INTERPRETER]\n [--ansible_ssh_user ANSIBLE_SSH_USER]\n [--auth-token AUTH_TOKEN]\n [--auth-url AUTH_URL] [--cacert CACERT]\n [--config-dir DIR] [--config-file PATH]\n [--debug] [--host HOST] [--list] [--nodebug]\n [--nolist] [--password ***\n [--plan PLAN] [--project-name PROJECT_NAME]\n [--stack STACK]\n [--static-yaml-inventory STATIC_YAML_INVENTORY]\n [--username USERNAME]\ntripleo-ansible-inventory: error: unrecognized arguments: --undercloud-connection ssh\n'
2019-04-12 06:42:31 | 2019-04-12 06:42:31.613 109929 ERROR tripleoclient.v1.overcloud_external_update.ExternalUpdateRun 
2019-04-12 06:42:31 | 2019-04-12 06:42:31.617 109929 ERROR openstack [-] Failed to generate inventory: Unexpected error while running command.
2019-04-12 06:42:31 | Command: /usr/bin/tripleo-ansible-inventory --stack overcloud --ansible_ssh_user tripleo-admin --undercloud-connection ssh --static-yaml-inventory /home/zuul/tripleo-ansible-inventory.yaml
2019-04-12 06:42:31 | Exit code: 2
2019-04-12 06:42:31 | Stdout: u''
2019-04-12 06:42:31 | Stderr: u'usage: tripleo-ansible-inventory [-h]\n [--ansible_python_interpreter ANSIBLE_PYTHON_INTERPRETER]\n [--ansible_ssh_user ANSIBLE_SSH_USER]\n [--auth-token AUTH_TOKEN]\n [--auth-url AUTH_URL] [--cacert CACERT]\n [--config-dir DIR] [--config-file PATH]\n [--debug] [--host HOST] [--list] [--nodebug]\n [--nolist] [--password ***\n [--plan PLAN] [--project-name PROJECT_NAME]\n [--stack STACK]\n [--static-yaml-inventory STATIC_YAML_INVENTORY]\n [--username USERNAME]\ntripleo-ansible-inventory: error: unrecognized arguments: --undercloud-connection ssh\n': InvalidConfiguration: Failed to generate inventory: Unexpected error while running command.
2019-04-12 06:42:31 | 2019-04-12 06:42:31.617 109929 INFO osc_lib.shell [-] END return value: 1

--undercloud-connection is added here https://review.openstack.org/#/c/649459/

Revision history for this message
Quique Llorente (quiquell) wrote :

Looks like is installing this version of tripleo-validations at stein
commit e6490b3e364765ee09b1634d948de9aaa9875402 (tag: 10.3.0)
Merge: b9490d1 5d5e096
Author: Zuul <email address hidden>
Date: Mon Feb 18 12:39:26 2019 +0000

    Merge "Update generate_validations_doc.py script"

It's very old

description: updated
Revision history for this message
Quique Llorente (quiquell) wrote :

Looks like DLRN RPM was build from wrong created stable/stein (it was poiting at tag not at HEAD) then branch is deleted, they are forcing DLRN into create new tripleo-validations RPM with latest.

Revision history for this message
Javier Peña (jpena-c) wrote :

As a longer explanation, some TripleO projects got stable/stein branches created from their latest (old) tag with [1]. This caused DLRN to start building from that branch, and it was later reverted by [2]. After the fix was merged, some manual cleanup was required in the RDO Trunk side to ensure the stable/stein branches were no longer seen.

As a final fix, a dummy distgit commit [3] will force a new package build, so we get the updated code again.

[1] https://review.openstack.org/650173
[2] https://review.openstack.org/651899
[3] https://review.rdoproject.org/r/20167

Changed in tripleo:
status: In Progress → Fix Committed
Changed in tripleo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.