[Openstack] [TripleO]Error while running RDO instack

Steve Gordon sgordon at redhat.com
Wed Sep 24 16:50:27 UTC 2014


----- Original Message -----
> From: "Peeyush Gupta" <gpeeyush at linux.vnet.ibm.com>
> To: openstack at lists.openstack.org
> 
> Hi all,
> 
> I have been trying to set up TripleO using RDO instack. I tried it in
> virtual environment and it works fine. Now, I am trying on physical
> environment. I installed Fedora 20 on a machine and set up the user stack.
> Now, when I run 'instack-install-undercloud-packages', I am getting the
> following error:
> 
> + output 'Running /tmp/tmpzgbZSQ/pre-install.d/00-allow-heat-admin-sudo'
> ++ date
> + echo dib-run-parts Tue Sep 23 13:00:52 IST 2014 Running
> /tmp/tmpzgbZSQ/pre-install.d/00-allow-heat-admin-sudo
> dib-run-parts Tue Sep 23 13:00:52 IST 2014 Running
> /tmp/tmpzgbZSQ/pre-install.d/00-allow-heat-admin-sudo
> + target_tag=00-allow-heat-admin-sudo
> + date +%s.%N
> + /tmp/tmpzgbZSQ/pre-install.d/00-allow-heat-admin-sudo
> /etc/sudoers.d/x2goserver: bad permissions, should be mode 0440
> /etc/sudoers: parsed OK
> /etc/sudoers.d/50_stack_sh: parsed OK
> /etc/sudoers.d/cinder-rootwrap: parsed OK
> /etc/sudoers.d/heat-admin-notty: parsed OK
> /etc/sudoers.d/nova-rootwrap: parsed OK
> /etc/sudoers.d/stack: parsed OK
> INFO: 2014-09-23 13:00:52,440 -- ############### End stdout/stderr
> logging ###############
> ERROR: 2014-09-23 13:00:52,441 --     Hook FAILED.
> ERROR: 2014-09-23 13:00:52,441 -- Failed running command
> ['dib-run-parts', u'/tmp/tmpzgbZSQ/pre-install.d']
> 
> Then I ran ' dib-run-parts /tmp/tmpNMJP7_/pre-install.d' command and
> here is the error I got:
> 
> + source /tmp/tmpNMJP7_/pre-install.d/../environment.d/15-manifests
> ++ set -eu
> ++ export DIB_MANIFEST_IMAGE_DIR=/etc/dib-manifests
> ++ DIB_MANIFEST_IMAGE_DIR=/etc/dib-manifests
> /tmp/tmpNMJP7_/pre-install.d/../environment.d/15-manifests: line 20:
> IMAGE_NAME: unbound variable
> 
> So, as I understand there is no IMAGE_NAME set in the system. So, I put
> fedora-20-undercloud-package as IMAGE_NAME. I am not sure if that is
> correct or not. Now, I ran the command again (the dib one) and here is
> the error:
> 
> + source /tmp/tmpNMJP7_/pre-install.d/../environment.d/15-manifests
> ++ set -eu
> ++ export DIB_MANIFEST_IMAGE_DIR=/etc/dib-manifests
> ++ DIB_MANIFEST_IMAGE_DIR=/etc/dib-manifests
> ++ export DIB_MANIFEST_SAVE_DIR=fedora-20-undercloud-packages.d/
> ++ DIB_MANIFEST_SAVE_DIR=fedora-20-undercloud-packages.d/
> + for target in '$targets'
> + output 'Running /tmp/tmpNMJP7_/pre-install.d/00-allow-heat-admin-sudo'
> ++ date
> + echo dib-run-parts Tue Sep 23 13:04:16 IST 2014 Running
> /tmp/tmpNMJP7_/pre-install.d/00-allow-heat-admin-sudo
> dib-run-parts Tue Sep 23 13:04:16 IST 2014 Running
> /tmp/tmpNMJP7_/pre-install.d/00-allow-heat-admin-sudo
> + target_tag=00-allow-heat-admin-sudo
> + date +%s.%N
> + /tmp/tmpNMJP7_/pre-install.d/00-allow-heat-admin-sudo
> /tmp/tmpNMJP7_/pre-install.d/00-allow-heat-admin-sudo: line 6:
> /etc/sudoers.d/heat-admin-notty: Permission denied
> 
> Can you please help me resolve the error?
> 
> Thanks,
> 
> --
> Peeyush Gupta
> gpeeyush at linux.vnet.ibm.com

Hi Peeyush,

Did you create the stack user and add them to sudo?:

# useradd stack
# passwd stack # specify a password
# echo "stack        ALL=(ALL)       NOPASSWD: ALL" > /etc/sudoers.d/stack
# chmod 0440 /etc/sudoers.d/stack

See the bottom of this page:

    https://openstack.redhat.com/Deploying_RDO_on_a_Baremetal_Environment_using_Instack

-Steve




More information about the Openstack mailing list