Error when i try to install Openstack platform 10 in rhel 7.3
Hello!!
I´m trying to install Openstack platform 10 in my pc with a local network (192.168.1.1) and with vmware workstation 8 in a rhel 7.3
I´m following this resources
https://access.redhat.com/documentation/en/red-hat-openstack-platform/10/paged/director-installation-and-usage/chapter-4-installing-the-undercloud
https://www.youtube.com/watch?v=ulpxlNFfbF8&t=45s
But I have always the same error when i execute the command openstack undercloud install
e
2017-02-08 20:00:27 - Warning: /Firewall[999 drop all]: Skipping because of failed dependencies
2017-02-08 20:00:28 - Error: Could not find a suitable provider for mysql_datadir
2017-02-08 20:00:28 - Error: Could not find a suitable provider for mysql_database
2017-02-08 20:00:28 - Error: Could not find a suitable provider for mysql_user
2017-02-08 20:00:28 - Notice: Finished catalog run in 9.76 seconds
+ rc=4
+ set -e
+ echo 'puppet apply exited with exit code 4'
puppet apply exited with exit code 4
+ '[' 4 '!=' 2 -a 4 '!=' 0 ']'
+ exit 4
[2017-02-08 20:00:35,450] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]
[2017-02-08 20:00:35,450] (os-refresh-config) [ERROR] Aborting...
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1214, in install
_run_orc(instack_env)
File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1003, in _run_orc
_run_live_command(args, instack_env, 'os-refresh-config')
File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 519, in _run_live_command
raise RuntimeError('%s failed. See log for details.' % name)
RuntimeError: os-refresh-config failed. See log for details.
Command 'instack-install-undercloud' returned non-zero exit status 1
This is my undercloud.conf
local_ip = 192.168.1.60/24
undercloud_public_vip = 192.168.1.61
undercloud_admin_vip = 192.168.1.62
local_interface = ens33
masquerade_network = 192.168.1.0/24
dhcp_start = 192.168.1.100
dhcp_end = 192.168.1.120
network_cidr = 192.168.1.0/24
network_gateway = 192.168.1.60
inspection_iprange = 192.168.1.130,192.168.1.160
Please I need help!!!
Thanks
Regards
Responses
Hi Daniel, I am having the same issue as above - where can I get the output of the Puppet run to post to you? Thanks Siobhán
The log from the openstack undercloud install is sent to stdout, but with OSPd 10 a copy of the log is stored in /home/stack/.instack/install-undercloud.log. For Puppet errors, it's a good idea to grep for Error:. For example:
$ grep "Error:" ~/.instack/install-undercloud.log
Usually it's the first failed Puppet action is responsible for the other failures -- the rest are usually dependent on that first failed Puppet action.
Also just an additional note: don't post your full .instack/install-undercloud.log publicly. This log file can contain authentication details to certain OpenStack services on your undercloud.
Hi Daniel, I am having the same trouble. Solution: Add DNS-Entry in /etc/resolv.conf Check it: $ cat /etc/resolv.conf nameserver 208.67.222.222 $ ping www.google.at
Hello!!
I´m trying to install Openstack platform 10 in my pc with a local network (192.168.0.28) and with virtualbox 5.1.22 in a rhel 7.3
I´m following this resources
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html/director_installation_and_usage/chap-installing_the_undercloud#sect-Completing_the_Undercloud_Configuration
I'm getting below error when i execute the command openstack undercloud install
[stack@manager ~]$ grep "Error:" ~/.instack/install-undercloud.log 2017-11-04 11:58:29,013 INFO: 2017-11-04 11:58:29 - Notice: /Stage[setup]/Tripleo::Network::Os_net_config/Exec[os-net-config]/returns: I Error: [Errno 2] No such file or directory: '/sys/class/net/eth1/address' 2017-11-04 11:58:29,024 INFO: 2017-11-04 11:58:29 - Error: /bin/os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes returned 1 instead of one of [0,2] 2017-11-04 11:58:29,025 INFO: 2017-11-04 11:58:29 - Error: /Stage[setup]/Tripleo::Network::Os_net_config/Exec[os-net-config]/returns: change from notrun to 0 2 failed: /bin/os-net-config -c /etc/os-net-config/config.json -v --detailed-exit-codes returned 1 instead of one of [0,2] 2017-11-04 11:58:46,441 INFO: 2017-11-04 11:58:46 - Error: /Stage[main]/Rabbitmq/Rabbitmq_plugin[rabbitmq_management]: Provider rabbitmqplugins is not functional on this host 2017-11-04 11:58:46,467 INFO: 2017-11-04 11:58:46 - Error: Could not prefetch mysql_grant provider 'mysql': Command mysql is missing 2017-11-04 11:58:46,933 INFO: 2017-11-04 11:58:46 - Error: Could not prefetch keystone_service provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:46,947 INFO: 2017-11-04 11:58:46 - Error: Could not prefetch keystone_role provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:47,888 INFO: 2017-11-04 11:58:47 - Error: Could not prefetch keystone_endpoint provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:49,154 INFO: 2017-11-04 11:58:49 - Error: Could not prefetch keystone_tenant provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:49,775 INFO: 2017-11-04 11:58:49 - Error: Could not prefetch keystone_domain provider 'openstack': Insufficient credentials to authenticate 2017-11-04 11:58:52,047 INFO: 2017-11-04 11:58:52 - Error: Could not find a suitable provider for mysql_datadir 2017-11-04 11:58:52,052 INFO: 2017-11-04 11:58:52 - Error: Could not find a suitable provider for mysql_database 2017-11-04 11:58:52,052 INFO: 2017-11-04 11:58:52 - Error: Could not find a suitable provider for mysql_user
This is my undercloud.conf
local_ip = 192.168.56.28/24 undercloud_public_vip = 192.168.56.29 undercloud_admin_vip = 192.168.56.30 local_interface = enp0s8 masquerade_network = 192.168.56.0/24 dhcp_start = 192.168.56.100 dhcp_end = 192.168.56.120 network_cidr = 192.168.56.0/24 network_gateway = 192.168.56.28
Would be great if I get some quick help here !!!
It looks like the local_interface param is being set to eth1. Is there anything else in the undercloud.conf file? Maybe an additional local_interface param set to eth1? Or maybe local_interface = enp0s8 is acidentally commented out?
Also can you provide the contents of /etc/os-net-config/config.json?
Hi Daniel, Thank you so much for providing the necessary info to get know issues ..
I'm sure, there is no additional param set to eth1 and eth1 is replaced by enp0s3 in the undecloud conf file.
Please find below the undercloud.conf file, [stack@manager ~]$ cat undercloud.conf |grep -v ^$ | grep -v ^# [DEFAULT] local_ip = 192.168.0.29/24 network_gateway = 192.168.0.29 undercloud_public_vip = 192.168.0.30 undercloud_admin_vip = 192.168.0.31 local_interface = enp0s3 local_mtu = 1500 network_cidr = 192.168.0.0/24 masquerade_network = 192.168.0.0/24 dhcp_start = 192.168.0.50 dhcp_end = 192.168.0.70 inspection_iprange = 192.168.0.100,192.168.0.120
Find below the content of /etc/os-net-config/config.json [stack@manager ~]$ cat /etc/os-net-config/config.json {"network_config": [{"addresses": [{"ip_netmask": "192.168.0.29/24"}], "mtu": 1500, "ovs_extra": ["br-set-external-id br-ctlplane bridge-id br-ctlplane"], "members": [{"type": "interface", "name": "enp0s3", "primary": "true", "mtu": 1500}], "type": "ovs_bridge", "name": "br-ctlplane"}]}
Please help me !!!
For your information... [stack@manager ~]$ grep "Error:" ~/.instack/install-undercloud.log 2017-11-05 02:00:04,968 INFO: 2017-11-05 02:00:04 - Error: Execution of '/bin/yum -d 0 -e 0 -y install iptables-services' returned 1: Error downloading packages: 2017-11-05 02:00:04,968 INFO: 2017-11-05 02:00:04 - Error: /Stage[setup]/Firewall::Linux::Redhat/Package[iptables-services]/ensure: change from absent to present failed: Execution of '/bin/yum -d 0 -e 0 -y install iptables-services' returned 1: Error downloading packages: 2017-11-05 02:00:10,617 INFO: 2017-11-05 02:00:10 - Error: /Stage[main]/Rabbitmq/Rabbitmq_plugin[rabbitmq_management]: Provider rabbitmqplugins is not functional on this host 2017-11-05 02:00:10,661 INFO: 2017-11-05 02:00:10 - Error: Could not prefetch mysql_grant provider 'mysql': Command mysql is missing 2017-11-05 02:00:11,156 INFO: 2017-11-05 02:00:11 - Error: Could not prefetch keystone_service provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:11,171 INFO: 2017-11-05 02:00:11 - Error: Could not prefetch keystone_role provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:12,335 INFO: 2017-11-05 02:00:12 - Error: Could not prefetch keystone_endpoint provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:13,737 INFO: 2017-11-05 02:00:13 - Error: Could not prefetch keystone_tenant provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:14,338 INFO: 2017-11-05 02:00:14 - Error: Could not prefetch keystone_domain provider 'openstack': Insufficient credentials to authenticate 2017-11-05 02:00:16,491 INFO: 2017-11-05 02:00:16 - Error: Could not find a suitable provider for mysql_datadir 2017-11-05 02:00:16,491 INFO: 2017-11-05 02:00:16 - Error: Could not find a suitable provider for mysql_database 2017-11-05 02:00:16,491 INFO: 2017-11-05 02:00:16 - Error: Could not find a suitable provider for mysql_user [stack@manager ~]$ sudo yum install iptables-services Loaded plugins: product-id, search-disabled-repos, subscription-manager https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: cdn.redhat.com; Unknown error" Trying other mirror. Resolving Dependencies --> Running transaction check ---> Package iptables-services.x86_64 0:1.4.21-18.2.el7_4 will be installed --> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================
Package Arch Version Repository SizeInstalling: iptables-services x86_64 1.4.21-18.2.el7_4 rhel-7-server-rpms 51 k
Transaction SummaryInstall 1 Package
Total download size: 51 k Installed size: 25 k Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. iptables-services-1.4.21-18.2. FAILED https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/Packages/iptables-services-1.4.21-18.2.el7_4.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: cdn.redhat.com; Unknown error" Trying other mirror. Error downloading packages: iptables-services-1.4.21-18.2.el7_4.x86_64: [Errno 256] No more mirrors to try.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
