Bug 1548470 - undercloud install failed because of missing puppet-archive
Summary: undercloud install failed because of missing puppet-archive
Keywords:
Status: CLOSED DUPLICATE of bug 1548460
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: instack-undercloud
Version: 12.0 (Pike)
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: James Slagle
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-23 15:43 UTC by Raoul Scarazzini
Modified: 2018-08-03 18:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-26 12:37:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Raoul Scarazzini 2018-02-23 15:43:31 UTC
Description of problem:

While testing the latest puddle the undercloud installation fails [1] with this error:

2018-02-23 10:07:04 | 2018-02-23 10:07:04,946 INFO: + systemctl is-enabled keepalived
2018-02-23 10:07:04 | 2018-02-23 10:07:04,953 INFO: Failed to get unit file state for keepalived.service: No such file or directory
2018-02-23 10:07:04 | 2018-02-23 10:07:04,956 INFO: dib-run-parts Fri Feb 23 10:07:04 EST 2018 30-reload-keepalived completed
2018-02-23 10:07:04 | 2018-02-23 10:07:04,957 INFO: dib-run-parts Fri Feb 23 10:07:04 EST 2018 Running /usr/libexec/os-refresh-config/configure.d/40-hiera-datafiles
2018-02-23 10:07:05 | 2018-02-23 10:07:05,042 INFO: [2018/02/23 10:07:05 AM] [WARNING] DEPRECATED: falling back to /var/run/os-collect-config/os_config_files.json
2018-02-23 10:07:05 | 2018-02-23 10:07:05,060 INFO: dib-run-parts Fri Feb 23 10:07:05 EST 2018 40-hiera-datafiles completed
2018-02-23 10:07:05 | 2018-02-23 10:07:05,061 INFO: dib-run-parts Fri Feb 23 10:07:05 EST 2018 Running /usr/libexec/os-refresh-config/configure.d/50-puppet-stack-config
2018-02-23 10:07:05 | 2018-02-23 10:07:05,063 INFO: + set -o pipefail
2018-02-23 10:07:05 | 2018-02-23 10:07:05,064 INFO: + puppet_apply puppet apply --summarize --detailed-exitcodes /etc/puppet/manifests/puppet-stack-config.pp
2018-02-23 10:07:05 | 2018-02-23 10:07:05,064 INFO: + set +e
2018-02-23 10:07:05 | 2018-02-23 10:07:05,064 INFO: + puppet apply --summarize --detailed-exitcodes /etc/puppet/manifests/puppet-stack-config.pp
2018-02-23 10:07:10 | 2018-02-23 10:07:10,037 INFO: ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
2018-02-23 10:07:10 | 2018-02-23 10:07:10,318 INFO: Notice: hiera(): Cannot load backend module_data: cannot load such file -- hiera/backend/module_data_backend
2018-02-23 10:07:10 | 2018-02-23 10:07:10,420 INFO: Warning: ModuleLoader: module 'openstacklib' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
2018-02-23 10:07:10 | 2018-02-23 10:07:10,420 INFO:    (file & line not available)
2018-02-23 10:07:10 | 2018-02-23 10:07:10,688 INFO: Notice: hiera(): Cannot load backend module_data: cannot load such file -- hiera/backend/module_data_backend
2018-02-23 10:07:10 | 2018-02-23 10:07:10,720 INFO: Warning: ModuleLoader: module 'rabbitmq' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
2018-02-23 10:07:10 | 2018-02-23 10:07:10,720 INFO:    (file & line not available)
2018-02-23 10:07:10 | 2018-02-23 10:07:10,939 INFO: Error: Evaluation Error: Resource type not found: Archive at /etc/puppet/modules/rabbitmq/manifests/install/rabbitmqadmin.pp:15:33 on node undercloud
2018-02-23 10:07:10 | 2018-02-23 10:07:10,977 INFO: + rc=1
2018-02-23 10:07:10 | 2018-02-23 10:07:10,977 INFO: + set -e
2018-02-23 10:07:10 | 2018-02-23 10:07:10,977 INFO: + echo 'puppet apply exited with exit code 1'
2018-02-23 10:07:10 | 2018-02-23 10:07:10,977 INFO: puppet apply exited with exit code 1
2018-02-23 10:07:10 | 2018-02-23 10:07:10,978 INFO: + '[' 1 '!=' 2 -a 1 '!=' 0 ']'
2018-02-23 10:07:10 | 2018-02-23 10:07:10,978 INFO: + exit 1
2018-02-23 10:07:10 | 2018-02-23 10:07:10,979 INFO: [2018-02-23 10:07:10,978] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]
2018-02-23 10:07:10 | 2018-02-23 10:07:10,979 INFO: 
2018-02-23 10:07:10 | 2018-02-23 10:07:10,979 INFO: [2018-02-23 10:07:10,978] (os-refresh-config) [ERROR] Aborting...
2018-02-23 10:07:10 | 2018-02-23 10:07:10,985 DEBUG: An exception occurred
2018-02-23 10:07:10 | Traceback (most recent call last):
2018-02-23 10:07:10 |   File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1869, in install
2018-02-23 10:07:10 |     _run_orc(instack_env)
2018-02-23 10:07:10 |   File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1383, in _run_orc
2018-02-23 10:07:10 |     _run_live_command(args, instack_env, 'os-refresh-config')
2018-02-23 10:07:10 |   File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 620, in _run_live_command
2018-02-23 10:07:10 |     raise RuntimeError('%s failed. See log for details.' % name)
2018-02-23 10:07:10 | RuntimeError: os-refresh-config failed. See log for details.
2018-02-23 10:07:10 | 2018-02-23 10:07:10,986 ERROR: 
2018-02-23 10:07:10 | #############################################################################
2018-02-23 10:07:10 | Undercloud install failed.
2018-02-23 10:07:10 | 
2018-02-23 10:07:10 | Reason: os-refresh-config failed. See log for details.
2018-02-23 10:07:10 | 
2018-02-23 10:07:10 | See the previous output for details about what went wrong.  The full install
2018-02-23 10:07:10 | log can be found at /home/stack/.instack/install-undercloud.log.
2018-02-23 10:07:10 | 
2018-02-23 10:07:10 | #############################################################################

Version-Release number of selected component (if applicable):

2018-02-23.1

Additional info:

Testing environment should be available, and all the available logs are here [2].

[1] https://thirdparty.logs.rdoproject.org/jenkins-oooq-rhos-12-puddle-bmu-had00-lab-float_nic_with_vlans-29/undercloud/home/stack/undercloud_install.log.txt.gz
[2] https://thirdparty.logs.rdoproject.org/jenkins-oooq-rhos-12-puddle-bmu-had00-lab-float_nic_with_vlans-29/

Comment 1 Gonéri Le Bouder 2018-02-24 04:08:31 UTC
[stack@director ~]$ sudo puppet apply --summarize --detailed-exitcodes /etc/puppet/manifests/puppet-stack-config.pp                                                                                                                           
ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)
Notice: hiera(): Cannot load backend module_data: cannot load such file -- hiera/backend/module_data_backend
Warning: ModuleLoader: module 'openstacklib' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
   (file & line not available)
Notice: hiera(): Cannot load backend module_data: cannot load such file -- hiera/backend/module_data_backend
Warning: ModuleLoader: module 'rabbitmq' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
   (file & line not available)
Error: Evaluation Error: Resource type not found: Archive at /etc/puppet/modules/rabbitmq/manifests/install/rabbitmqadmin.pp:15:33 on node director.cwdg720xd01.org

A work around:
yum install the puppet-archive from https://trunk.rdoproject.org/centos7-master/current/
sudo ln -s /usr/share/openstack-puppet/modules/archive /etc/puppet/modules

Comment 2 Yatin Karel 2018-02-26 09:35:14 UTC
puppet-archive is added into RDO 2 months back due to inclusion of updated puppet-rabbitmq: https://review.rdoproject.org/r/#/c/10941/

So, somehow it's missed in import. This is needed by puppet-rabbitmq so please add it in rhos12 puddle as well.



<<< A work around:
yum install the puppet-archive from https://trunk.rdoproject.org/centos7-master/current/

>>> RDO pike repo to be used for workaround:- https://trunk.rdoproject.org/centos7-pike/current-tripleo-rdo-internal

Comment 3 Gonéri Le Bouder 2018-02-26 12:37:58 UTC

*** This bug has been marked as a duplicate of bug 1548460 ***


Note You need to log in before you can comment on or make changes to this bug.