Commit 8b77cb97 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

deploy: Fixes related to QA rapi user

redist-conf after adding QA rapi user, otherwise gnt-cluster verify
will complain for different /var/lib/ganeti/rapi/users files.

Add rapi user in qa-init.sh only if the cluster is not initialized.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent bafc3c2d
......@@ -120,8 +120,9 @@ EOF
-o /var/lib/snf-image/debian_base.diskdump
touch /etc/ganeti/vnc-cluster-password
fi
cat >> /var/lib/ganeti/rapi/users <<EOF
ganeti-qa ganeti-qa write
cat >> /var/lib/ganeti/rapi/users <<EOF
ganeti-qa qa_example_passwd write
EOF
fi
......@@ -663,7 +663,10 @@ class Master(base.Component):
cmd = """
echo ganeti-qa qa_example_passwd write >> /var/lib/ganeti/rapi/users
"""
return [cmd]
return [
cmd,
"gnt-cluster redist-conf",
]
def _add_rapi_user(self):
user = config.synnefo_user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment