network-config-service.sh incorrect for Fedora Atomic 25
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Fix Released
|
Undecided
|
Javier Castillo | ||
Mitaka |
In Progress
|
Undecided
|
Andrew Bruce |
Bug Description
While deploying new bay to OpenStack Mitaka, found that some generated files were incorrect:
./magnum/
./magnum/
./magnum/
The problem is the usage of FLANNEL_ETCD / FLANNEL_ETCD_KEY after sourcing in /etc/sysconfig/
Upon reviewing the latest code in the OpenStack Magnum repo, I see that both the Kubernetes fragments appear updated. However, the Swarm fragment still uses:
<cut>
if ! [ "$FLANNEL_ETCD" ] && [ "$FLANNEL_ETCD_KEY" ]; then
echo "ERROR: missing required configuration" >&2
exit 1
fi
echo "creating flanneld config in etcd"
while ! curl -sf -L $ETCD_CURL_OPTIONS \
$FLANNEL_
-X PUT --data-urlencode value@$
echo "waiting for etcd"
sleep 1
done
</cut>
These need to be changed to FLANNEL_
While in there, I request three additional changes that still affect the Swarm / Kubernetes network-
1. Please source in current settings from /etc/sysconfig/
2. In the fragments, escape variable references. For example, how about:
<cut>
if ! [ "\$FLANNEL_
echo "ERROR: missing required configuration" >&2
exit 1
fi
echo "creating flanneld config in etcd"
while ! curl -sf -L \$FLANNEL_
-X PUT --data-urlencode value@$
echo "waiting for etcd"
sleep 1
done
</cut>
3. For both the Kubernetes and the Swarm network-
<cut>
cat > $FLANNEL_
[Unit]
After=etcd.service
Requires=
# ABr: maintain state
Before=
[Service]
Type=oneshot
EnvironmentFile
ExecStart=
[Install]
WantedBy=
EOF
</cut>
That last setting will prevent flanneld from starting too early - settings will be properly populated to etcd!
Thanks very much.
description: | updated |
Mitaka is not updated for the latest fedora atomic.
Mitaka supports an old image. We need to update. I recommend Newton or later.