help with Openstack magnum in train
Hi,
I have openstack train deployed by kolla-ansible and am trying to deploy a k8s cluster on Fedora Atomic 27 with magnum it seems there is no podman binary in the Atomic 27 image specifically, Fedora-Atomic-27-20180419.0.x86_64.qcow2
I have set the label use_podman=false
however, the template seems to ignore that which results in this error in the heat agent log:
WARNING Attempt 12: Trying to install kubectl. Sleeping 5s
* i=12 * '[' 12 -gt 60 ']' * echo 'WARNING Attempt 12: Trying to install kubectl. Sleeping 5s' * sleep 5s * ssh -F /srv/magnum/.ssh/config root@localhost '/usr/bin/podman run --entrypoint /bin/bash --name install-kubectl --net host --privileged --rm --user root --volume /srv/magnum/bin:/host/srv/magnum/bin k8s.gcr.io/hyperkube:v1.15.7http://k8s.gcr.io/hyperkube:v1.15.7 -c '''cp /usr/local/bin/kubectl /host/srv/magnum/bin/kubectl'''' bash: /usr/bin/podman: No such file or directory
[fedora@test-quznqfqfa5ld-master-0 ~]$ which podman /usr/bin/which: no podman in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/fedora/.local/bin:/home/fedora/bin)
I have tried a later version of atomic but the dependencies are closely coupled and it seems I must use version 27 - what am I missing?
I'm following along with the Train documentation https://docs.openstack.org/magnum/train/install/launch-instance.html
and was able to deploy a docker swarm cluster.
thanks,
Rob.
________________________________ The information contained and transmitted in this e-mail is confidential information, and is intended only for the named recipient to which it is addressed. The content of this e-mail may not have been sent with the authority of National College of Ireland. Any views or opinions presented are solely those of the author and do not necessarily represent those of National College of Ireland. If the reader of this message is not the named recipient or a person responsible for delivering it to the named recipient, you are notified that the review, dissemination, distribution, transmission, printing or copying, forwarding, or any other use of this message or any part of it, including any attachments, is strictly prohibited. If you have received this communication in error, please delete the e-mail and destroy all record of this communication. Thank you for your assistance. ________________________________
Use fedora atomic 29 if you have to but it is end of life and no longer security patched. We recommend using fedora coreos instead.
Sent from my iPhone
On 8 Oct 2020, at 13:44, Robert Duncan Robert.Duncan@ncirl.ie wrote:
Hi,
I have openstack train deployed by kolla-ansible and am trying to deploy a k8s cluster on Fedora Atomic 27 with magnum it seems there is no podman binary in the Atomic 27 image specifically, Fedora-Atomic-27-20180419.0.x86_64.qcow2
I have set the label use_podman=false
however, the template seems to ignore that which results in this error in the heat agent log:
WARNING Attempt 12: Trying to install kubectl. Sleeping 5s
i=12 '[' 12 -gt 60 ']' echo 'WARNING Attempt 12: Trying to install kubectl. Sleeping 5s' sleep 5s ssh -F /srv/magnum/.ssh/config root@localhost '/usr/bin/podman run --entrypoint /bin/bash --name install-kubectl --net host --privileged --rm --user root --volume /srv/magnum/bin:/host/srv/magnum/bin k8s.gcr.io/hyperkube:v1.15.7 -c '''cp /usr/local/bin/kubectl /host/srv/magnum/bin/kubectl'''' bash: /usr/bin/podman: No such file or directory [fedora@test-quznqfqfa5ld-master-0 ~]$ which podman /usr/bin/which: no podman in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/fedora/.local/bin:/home/fedora/bin)
I have tried a later version of atomic but the dependencies are closely coupled and it seems I must use version 27 - what am I missing?
I'm following along with the Train documentation https://docs.openstack.org/magnum/train/install/launch-instance.html
and was able to deploy a docker swarm cluster.
thanks,
Rob.
The information contained and transmitted in this e-mail is confidential information, and is intended only for the named recipient to which it is addressed. The content of this e-mail may not have been sent with the authority of National College of Ireland. Any views or opinions presented are solely those of the author and do not necessarily represent those of National College of Ireland. If the reader of this message is not the named recipient or a person responsible for delivering it to the named recipient, you are notified that the review, dissemination, distribution, transmission, printing or copying, forwarding, or any other use of this message or any part of it, including any attachments, is strictly prohibited. If you have received this communication in error, please delete the e-mail and destroy all record of this communication. Thank you for your assistance.
Thanks Bharat, yes Fedora 29 works!!, I will give coreos a try also - however the documentation says that the heat templates and machine images are closely coupled and the coreos links are broken, do you know specifically which version or coreos for magnum train release is correct?
e.g. - this is broken link on Magnum user guide page http://beta.release.core-os.net/amd64-usr/current/coreos_production_openstac...
and the support matrix lists coreos version 4.3.6 but I can't find a coreos with anything like that version now
Rob. ________________________________ From: Bharat Kunwar bharat@stackhpc.com Sent: Thursday 8 October 2020 15:04 To: Robert Duncan Robert.Duncan@ncirl.ie Cc: OpenStack Discuss openstack-discuss@lists.openstack.org Subject: Re: help with Openstack magnum in train
Use fedora atomic 29 if you have to but it is end of life and no longer security patched. We recommend using fedora coreos instead.
Sent from my iPhone
On 8 Oct 2020, at 13:44, Robert Duncan Robert.Duncan@ncirl.ie wrote:
Hi,
I have openstack train deployed by kolla-ansible and am trying to deploy a k8s cluster on Fedora Atomic 27 with magnum it seems there is no podman binary in the Atomic 27 image specifically, Fedora-Atomic-27-20180419.0.x86_64.qcow2
I have set the label use_podman=false
however, the template seems to ignore that which results in this error in the heat agent log:
WARNING Attempt 12: Trying to install kubectl. Sleeping 5s
* i=12 * '[' 12 -gt 60 ']' * echo 'WARNING Attempt 12: Trying to install kubectl. Sleeping 5s' * sleep 5s * ssh -F /srv/magnum/.ssh/config root@localhost '/usr/bin/podman run --entrypoint /bin/bash --name install-kubectl --net host --privileged --rm --user root --volume /srv/magnum/bin:/host/srv/magnum/bin k8s.gcr.io/hyperkube:v1.15.7http://k8s.gcr.io/hyperkube:v1.15.7 -c '''cp /usr/local/bin/kubectl /host/srv/magnum/bin/kubectl'''' bash: /usr/bin/podman: No such file or directory
[fedora@test-quznqfqfa5ld-master-0 ~]$ which podman /usr/bin/which: no podman in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/fedora/.local/bin:/home/fedora/bin)
I have tried a later version of atomic but the dependencies are closely coupled and it seems I must use version 27 - what am I missing?
I'm following along with the Train documentation https://docs.openstack.org/magnum/train/install/launch-instance.html
and was able to deploy a docker swarm cluster.
thanks,
Rob.
________________________________
The information contained and transmitted in this e-mail is confidential information, and is intended only for the named recipient to which it is addressed. The content of this e-mail may not have been sent with the authority of National College of Ireland. Any views or opinions presented are solely those of the author and do not necessarily represent those of National College of Ireland. If the reader of this message is not the named recipient or a person responsible for delivering it to the named recipient, you are notified that the review, dissemination, distribution, transmission, printing or copying, forwarding, or any other use of this message or any part of it, including any attachments, is strictly prohibited. If you have received this communication in error, please delete the e-mail and destroy all record of this communication. Thank you for your assistance.
________________________________
Please use fedora coreos, not coreos which is also eol now.
Sent from my iPhone
On 8 Oct 2020, at 15:36, Robert Duncan Robert.Duncan@ncirl.ie wrote:
Thanks Bharat, yes Fedora 29 works!!, I will give coreos a try also - however the documentation says that the heat templates and machine images are closely coupled and the coreos links are broken, do you know specifically which version or coreos for magnum train release is correct?
e.g. - this is broken link on Magnum user guide page http://beta.release.core-os.net/amd64-usr/current/coreos_production_openstac...
and the support matrix lists coreos version 4.3.6 but I can't find a coreos with anything like that version now
Rob. From: Bharat Kunwar bharat@stackhpc.com Sent: Thursday 8 October 2020 15:04 To: Robert Duncan Robert.Duncan@ncirl.ie Cc: OpenStack Discuss openstack-discuss@lists.openstack.org Subject: Re: help with Openstack magnum in train
Use fedora atomic 29 if you have to but it is end of life and no longer security patched. We recommend using fedora coreos instead.
Sent from my iPhone
On 8 Oct 2020, at 13:44, Robert Duncan Robert.Duncan@ncirl.ie wrote:
Hi,
I have openstack train deployed by kolla-ansible and am trying to deploy a k8s cluster on Fedora Atomic 27 with magnum it seems there is no podman binary in the Atomic 27 image specifically, Fedora-Atomic-27-20180419.0.x86_64.qcow2
I have set the label use_podman=false
however, the template seems to ignore that which results in this error in the heat agent log:
WARNING Attempt 12: Trying to install kubectl. Sleeping 5s
i=12 '[' 12 -gt 60 ']' echo 'WARNING Attempt 12: Trying to install kubectl. Sleeping 5s' sleep 5s ssh -F /srv/magnum/.ssh/config root@localhost '/usr/bin/podman run --entrypoint /bin/bash --name install-kubectl --net host --privileged --rm --user root --volume /srv/magnum/bin:/host/srv/magnum/bin k8s.gcr.io/hyperkube:v1.15.7 -c '''cp /usr/local/bin/kubectl /host/srv/magnum/bin/kubectl'''' bash: /usr/bin/podman: No such file or directory [fedora@test-quznqfqfa5ld-master-0 ~]$ which podman /usr/bin/which: no podman in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/fedora/.local/bin:/home/fedora/bin)
I have tried a later version of atomic but the dependencies are closely coupled and it seems I must use version 27 - what am I missing?
I'm following along with the Train documentation https://docs.openstack.org/magnum/train/install/launch-instance.html
and was able to deploy a docker swarm cluster.
thanks,
Rob.
The information contained and transmitted in this e-mail is confidential information, and is intended only for the named recipient to which it is addressed. The content of this e-mail may not have been sent with the authority of National College of Ireland. Any views or opinions presented are solely those of the author and do not necessarily represent those of National College of Ireland. If the reader of this message is not the named recipient or a person responsible for delivering it to the named recipient, you are notified that the review, dissemination, distribution, transmission, printing or copying, forwarding, or any other use of this message or any part of it, including any attachments, is strictly prohibited. If you have received this communication in error, please delete the e-mail and destroy all record of this communication. Thank you for your assistance.
Hi Rob,
I didn't see any replies to your message. I am also trying to use Magnum and having issues. These labels are allowing me to deploy k8 cluster (although I have another issue with regards to storage/flavours which I'm coming back to soon)
cinder_csi_enabled=trueavailability_zone=AZ_1 cloud_provider_enabled=true heat_container_agent_tag=train-stable-3
Some time back when I asked the group here for help, I was informed about a bug and they suggested using "heat_container_agent_tag=train-stable-3". I have multi AZ so I needed to specify one. The other two have been found on the back of some research with one of our internal developers for something else but just mentioning here in case it helps.
Good luck with this and I'd be grateful for your feedback - this has caused me much pain to get working.
The storage issue I currently have is with regards to the flavour being used for the cluster instances. I need to use 0MB disk so that all of the instance storage is set up on externally integrated array (Cinder / cinder iscsi storage driver). However, using this flavour causes the k8 create to fail because it errors on the 0MB. I have some steps to try from the community but have not been able to get to this yet.
Regards,
Tony Pearce
On Thu, 8 Oct 2020 at 20:44, Robert Duncan Robert.Duncan@ncirl.ie wrote:
Hi,
I have openstack train deployed by kolla-ansible and am trying to deploy a k8s cluster on Fedora Atomic 27 with magnum it seems there is no podman binary in the Atomic 27 image specifically, Fedora-Atomic-27-20180419.0.x86_64.qcow2
I have set the label *use_podman=false*
however, the template seems to ignore that which results in this error in the heat agent log:
WARNING Attempt 12: Trying to install kubectl. Sleeping 5s
- i=12
- '[' 12 -gt 60 ']'
- echo 'WARNING Attempt 12: Trying to install kubectl. Sleeping 5s'
- sleep 5s
- ssh -F /srv/magnum/.ssh/config root@localhost '/usr/bin/podman run
--entrypoint /bin/bash --name install-kubectl --net host --privileged --rm --user root --volume /srv/magnum/bin:/host/srv/magnum/bin k8s.gcr.io/hyperkube:v1.15.7 -c '''cp /usr/local/bin/kubectl /host/srv/magnum/bin/kubectl'''' bash: /usr/bin/podman: No such file or directory
[fedora@test-quznqfqfa5ld-master-0 ~]$ which podman */usr/bin/which: no podman in (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/fedora/.local/bin:/home/fedora/bin)*
*I have tried a later version of atomic but the dependencies are closely coupled and it seems I must use version 27 - what am I missing?*
*I'm following along with the Train documentation https://docs.openstack.org/magnum/train/install/launch-instance.html https://docs.openstack.org/magnum/train/install/launch-instance.html*
and was able to deploy a docker swarm cluster.
thanks,
Rob.
The information contained and transmitted in this e-mail is confidential information, and is intended only for the named recipient to which it is addressed. The content of this e-mail may not have been sent with the authority of National College of Ireland. Any views or opinions presented are solely those of the author and do not necessarily represent those of National College of Ireland. If the reader of this message is not the named recipient or a person responsible for delivering it to the named recipient, you are notified that the review, dissemination, distribution, transmission, printing or copying, forwarding, or any other use of this message or any part of it, including any attachments, is strictly prohibited. If you have received this communication in error, please delete the e-mail and destroy all record of this communication. Thank you for your assistance.
participants (3)
-
Bharat Kunwar
-
Robert Duncan
-
Tony Pearce