jriguera / ansible-ironic-standalone

Ansible roles and playbook to setup an Ironic standalone server to deploy baremetal hosts
http://jose.riguera.es/blog/openstack/2015/12/19/Ironic-2/
Apache License 2.0
44 stars 18 forks source link

Installation fails on RedHat 7.2 with Ironic-Inspector packages #9

Open jriguera opened 8 years ago

jriguera commented 8 years ago
TASK [inspector : RedHat - Install Ironic-Inspector required packages] *********
ok: [ironic] => (item={'value': {u'state': u'latest'}, 'key': u'openstack-selinux'})
failed: [ironic] (item={'value': {u'state': u'latest'}, 'key': u'openstack-ironic-inspector'}) => {"changed": true, "failed": true, "item": {"key": "openstack-ironic-inspector", "value": {"state": "latest"}}, "msg": "Error: Package: openstack-ironic-inspector-3.2.2-1.el7.noarch (openstack-mitaka)\n           Requires: python-flask\n", "rc": 1, "results": ["Loaded plugins: product-id, search-disabled-repos, subscription-manager\nResolving Dependencies\n--> Running transaction check\n---> Package openstack-ironic-inspector.noarch 0:3.2.2-1.el7 will be installed\n--> Processing Dependency: python-jsonpath-rw for package: openstack-ironic-inspector-3.2.2-1.el7.noarch\n--> Processing Dependency: python-ironicclient for package: openstack-ironic-inspector-3.2.2-1.el7.noarch\n--> Processing Dependency: python-flask for package: openstack-ironic-inspector-3.2.2-1.el7.noarch\n--> Running transaction check\n---> Package openstack-ironic-inspector.noarch 0:3.2.2-1.el7 will be installed\n--> Processing Dependency: python-flask for package: openstack-ironic-inspector-3.2.2-1.el7.noarch\n---> Package python-ironicclient.noarch 0:1.3.1-1.el7 will be installed\n--> Processing Dependency: python-dogpile-cache >= 0.5.7 for package: python-ironicclient-1.3.1-1.el7.noarch\n---> Package python-jsonpath-rw.noarch 0:1.2.3-2.el7 will be installed\n--> Running transaction check\n---> Package openstack-ironic-inspector.noarch 0:3.2.2-1.el7 will be installed\n--> Processing Dependency: python-flask for package: openstack-ironic-inspector-3.2.2-1.el7.noarch\n---> Package python-dogpile-cache.noarch 0:0.5.7-3.el7 will be installed\n--> Processing Dependency: python-dogpile-core >= 0.4.1 for package: python-dogpile-cache-0.5.7-3.el7.noarch\n--> Running transaction check\n---> Package openstack-ironic-inspector.noarch 0:3.2.2-1.el7 will be installed\n--> Processing Dependency: python-flask for package: openstack-ironic-inspector-3.2.2-1.el7.noarch\n---> Package python-dogpile-core.noarch 0:0.4.1-2.el7 will be installed\n--> Finished Dependency Resolution\nError: Package: openstack-ironic-inspector-3.2.2-1.el7.noarch (openstack-mitaka)\n           Requires: python-flask\n**********************************************************************\nyum can be configured to try to resolve such errors by temporarily enabling\ndisabled repos and searching for missing dependencies.\nTo enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf\n**********************************************************************\n\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}
jriguera commented 8 years ago

It is due to the fact that there are python dependencies which are not available on the RedHat repositories. In order to be able to deploy it, one can install it by typing:

yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/python-werkzeug-0.9.1-2.el7.noarch.rpm
yum install -y ftp://195.220.108.108/linux/centos/7.2.1511/extras/x86_64/Packages/python-itsdangerous-0.23-2.el7.noarch.rpm
yum install -y ftp://195.220.108.108/linux/centos/7.2.1511/extras/x86_64/Packages/python-flask-0.10.1-4.el7.noarch.rpm

3 packages are needed because of cascade dependencies. Those dependencies should be fixed in the future in the upstream repository.