enable stack sudo for ironic discovery gate job
discovery_exercise.sh performs two steps that require superuser privileges: * iptables -L ironic-inspector to confirm a node is not blacklisted before booting it for the discovery process * virsh start <baremetal_domain> to trigger the discovery process of a node This patch changes safe-devstack-vm-gate-wrap.sh behavior to avoid dropping stack user from sudoers.d Similar approach has already been applied in case of the nodepool.yaml set of jobs[1] Links: [1] https://github.com/openstack-infra/project-config/blob/master/jenkins/jobs/nodepool.yaml#L77 Change-Id: I69fb19f4baa0ae433ac53a4384992ee6a9d3ba65
This commit is contained in:
parent
5a3b1702cf
commit
91f259453b
@ -178,6 +178,8 @@
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_VM_SPECS_RAM=1024"$'\n'"IRONIC_VM_COUNT=1"
|
||||
# enable enroll hook
|
||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"IRONIC_INSPECTOR_NODE_NOT_FOUND_HOOK=enroll"
|
||||
# discovery_exercise.sh requires iptables and virsh direct access
|
||||
export DEVSTACK_GATE_REMOVE_STACK_SUDO=0
|
||||
|
||||
function post_test_hook {{
|
||||
source $BASE/new/devstack/openrc admin admin
|
||||
|
Loading…
x
Reference in New Issue
Block a user