"visudo" always got error when building overcloud image

Bug #1381408 reported by Andy Yan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Expired
Undecided
Unassigned

Bug Description

Hi, All:
        I'm trying to build an CentOS Overcloud image on Ubuntu.
       But I always got error below:
       sudo: /etc/sudoers.d/heat-admin-notty is mode 0660, should be 0440
       I'm using the command below, I appreciate it for any help:

#!/bin/bash

source ~/tripleo/tripleorc
NODE_DIST="centos7"
echo $NODE_DIST
NODE_ARCH="amd64"
echo $NODE_ARCH
DIB_COMMON_ELEMENTS=${DIB_COMMON_ELEMENTS:-'stackuser'}
OVERCLOUD_CONTROL_DIB_EXTRA_ARGS=${OVERCLOUD_CONTROL_DIB_EXTRA_ARGS:-'rabbitmq-server cinder-tgt'}
#OVERCLOUD_CONTROL_DIB_EXTRA_ARGS="$OVERCLOUD_CONTROL_DIB_EXTRA_ARGS mariadb-rpm"
OVERCLOUD_CONTROL_DIB_EXTRA_ARGS="$OVERCLOUD_CONTROL_DIB_EXTRA_ARGS snmpd"
SSL_ELEMENT=${SSLBASE:+openstack-ssl}

#$TRIPLEO_ROOT/diskimage-builder/bin/disk-image-create $NODE_DIST \
~/tripleo/diskimage-builder/bin/disk-image-create $NODE_DIST \
    -a $NODE_ARCH -o $TRIPLEO_ROOT/overcloud-control ntp hosts \
    baremetal boot-stack cinder-api ceilometer-collector \
    ceilometer-api ceilometer-agent-central ceilometer-agent-notification \
    os-collect-config horizon dhcp-all-interfaces \
    swift-proxy swift-storage keepalived haproxy local-config \
    $DIB_COMMON_ELEMENTS $OVERCLOUD_CONTROL_DIB_EXTRA_ARGS ${SSL_ELEMENT:-} 2>&1 | \
    tee $TRIPLEO_ROOT/dib-overcloud-control.log
    #neutron-network-node

Revision history for this message
Ghe Rivero (ghe.rivero) wrote :

Tried to reproduce it without success.
Looking at the code in

http://git.openstack.org/cgit/openstack/diskimage-builder/tree/elements/rpm-distro/pre-install.d/00-allow-heat-admin-sudo#n6

it sets the correct permissions just before calling visudo :?

Changed in diskimage-builder:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for diskimage-builder because there has been no activity for 60 days.]

Changed in diskimage-builder:
status: Incomplete → Expired
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.