Ask Your Question

hongbin034's profile - activity

2019-04-29 17:11:32 -0500 commented answer docker network create with kuryr

Will it work if you change the kuryr config file to use port 5000?

[neutron]

auth_url = http://controller:5000

2019-04-27 12:41:52 -0500 answered a question docker network create with kuryr

Hi,

First, you might want to verify if the credential you provided (in kuryr config file under [neutron]) is authenticatable with Keystone. For example, you can do this:

  $ export OS_PROJECT_DOMAIN_ID=default

  $ export OS_USER_DOMAIN_ID=default

  $ export OS_PROJECT_NAME=service 

  $ export OS_IDENTITY_API_VERSION=3

  $ export OS_PASSWORD=123

  $ export OS_AUTH_TYPE=password

  $ export OS_AUTH_URL=http://controller:35357

  $ export OS_USERNAME=kuryr

  $ openstack token issue

The last command should succeed if the credential is valid. Otherwise, it is invalid.

Several other remarks:

  • The error message said the kuryr process didn't start successfully so the port 23750 is not open.
  • If you can get kuryr process running, port 23750 should be automatically open in compute node (not controller node).
2019-04-27 12:32:11 -0500 commented question docker network create with kuryr

The error message said kuryr failed to authenticate itself with Keystone. You might want to check the credential in kuryr config file under "[neutron]" session.

2019-04-27 12:16:27 -0500 answered a question How to use Zun to deploy apps in Openstack?

To summarize above comments, OpenStack Zun is the service that allows you to directly deploy your containerized app to OpenStack (without any VMs or cluster). It pulls images from DockerHub by default, with a config option to switch to private registry.

You can use Zun in standalone, or you can use Zun together with an orchestrator (recommended for complex deployment). Right now, the supported orchestrator is Heat or Kubernetes.

For Heat, here is an example: https://github.com/hongbin/heat-templ... .

For k8s, here is the details: https://github.com/virtual-kubelet/vi...

2019-04-27 12:04:39 -0500 commented question How to use Zun to deploy apps in Openstack?

Right, Zun pull image from DockerHub by default.

2019-04-27 12:03:01 -0500 commented question [ZUN] Access the container command giving 500 Internal Server Error

The 500 error indicates there are something wrong in the server side. You might want to check the server-side logs to find the real error:

$ sudo journalctl -u zun-api $ sudo journalctl -u zun-compute $ sudo journalctl -u zun-wsproxy

Paste above logs to us if you need further helps.

2019-04-27 11:57:19 -0500 received badge  Editor (source)
2019-04-27 11:56:29 -0500 answered a question How can we Scale Zun Containers

There are people asking a similar question in ML in before, and here is my answer: http://lists.openstack.org/pipermail/... .

In short, you can use Heat together with Zun and scale Zun containers using Heat templates. For example, you can reference the following template: http://paste.openstack.org/show/748357/

  • Create the stack:

    $ openstack stack create -t zun-template.yaml test

  • Scale out:

    $ openstack stack update -t zun-template.yaml --parameter "count=2" test

  • Scale in:

    $ openstack stack update -t zun-template.yaml --parameter "count=1" test

Another option is using Virtual Kubelet with OpenStack provider so that you can scale Zun containers in k8s. Please refer this for details: https://github.com/virtual-kubelet/vi...

2019-04-27 11:50:30 -0500 commented answer Zun Cloudshell container wont start

And I created a ticket to track this issue: https://bugs.launchpad.net/zun-ui/+bu...

2019-04-27 11:49:46 -0500 commented answer Zun Cloudshell container wont start

The error message said there are multiple networks in your tenant so zun doesn't know which network the cloudshell container should run on. The quickest work-around is to have the containershell container runs on tenant with one network.

2019-04-27 11:39:03 -0500 commented question Queens Horizon Dashboard shows Something went wrong! (Zun-UI)

Hi, what error you saw in the dashboard?

2019-03-02 09:07:18 -0500 answered a question Zun not starting up

If you see the zun-compute container is restarting, that means it failed to start in before. There should be some error message logged in the zun-compute logs which indicate the culprit of the failure. You can check the log by:

sudo docker exec fluentd cat /var/log/kolla/zun/zun-compute.log
2019-03-02 09:01:53 -0500 commented question Zun not starting up

To clarify, you already figured out why the zun-compute container was restarting? or you still need help for that?

2019-02-28 22:35:18 -0500 commented question Zun not starting up

Did you see any error message in the zun-compute log? You can get into the 'fluentd' container and find the log in /var/log/kolla/zun* . See here: https://docs.openstack.org/kolla-ansi...

2019-02-18 13:42:09 -0500 commented question Zun Cloudshell container wont start

Could you verify if you have any neutron network created in your tenant? If not, there is a script in Kolla to create such network:

. /etc/kolla/admin-openrc.sh
. /usr/local/share/kolla-ansible/init-runonce

Let me know if it doesn't help.

2019-02-14 19:59:31 -0500 answered a question Error in "docker network create" with kuryr as driver

It seems your docker daemon cannot connect to the kuryr-libnetwork process. There are several things you might want to verify:

  • If the kuryr-libnetwork process is running? (sudo systemctl start kuryr-libnetwork)
  • If there is any error in the kuryr-libnetwork log? (sudo journalctl -u kuryr-libnetwork)
  • If docker daemon has the correct endpoint of the kuryr-libnetwork? (check /usr/lib/docker/plugins/kuryr/kuryr.spec)

If above doesn't help, we need the following items for further trouble-shooting.

  • The kuryr-libnetwork log
  • The docker daemon log
  • The kuryr-libnetwork config file (/etc/kuryr/kuryr.conf)
2018-12-26 16:27:57 -0500 commented answer Hello Everyone, I wanted to do Zun service in openstack, but Offciacal openstack docs have not given in Centos pike as they only given in ubuntu. So I can continue zun service ubuntu pike or ubuntu queen, Pls help me anyone???
2018-12-26 16:24:30 -0500 commented question zun and access to public network unreachable

Hi @raniaadouni ,

A few clarification questions:

  • How did you deploy OpenStack (i.e. you are using a tool or following a document somewhere)?
  • How did you setup the Zun service?
  • Which version of OpenStack service you were using (i.e. Master, Rocky, Queens or Pike)?
  • Which version of Zun?
2018-11-19 14:35:31 -0500 commented question container service ZUN

I would like to clarify one thing though. We (Zun team) maintain different installation guides for different releases. There would be subtle differences between releases so pay attention to that.

2018-11-19 14:34:00 -0500 commented question container service ZUN

The Pike version of Zun will match to Kuryr-libnetwork 0.2.0 . Clone the source of kuryr-libnetwork then checkout the tag "0.2.0" should do the trick.

2018-11-19 14:34:00 -0500 received badge  Commentator
2018-11-19 14:27:23 -0500 answered a question container service ZUN

Hi,

I am sorry for the missing of installation guide for Pike. The reason is simply because we wrote installation guide starting from Queens and maintain the guide afterward. Backporting the installation guide to Pike is on our TODO list but it might not happen right away. You could refer Queen's version of installation guide [1] as a reference with the following modifications:

  • Clone Kuryr-libnetwork 0.2.0 instead of stable/queens
  • Install python-zunclient 0.4.0 instead of 1.1.0

There could be other pitfalls and you are welcome to contact the Zun team if you find any issue. We provide community support in the following ways (of course, you are welcome to continue to use AskOpenStack for support and I will try to monitor the questions here):

[1] https://docs.openstack.org/zun/queens...

2018-07-15 13:59:08 -0500 commented answer Zun initd upstart script on Ubuntu 14.04 LTS

Here is the init script for Ubuntu 14.04: https://review.openstack.org/#/c/582803/

2018-07-15 12:38:49 -0500 answered a question Zun initd upstart script on Ubuntu 14.04 LTS

Hi,

It is possible to port the systemd to a upstart script that is supported by Ubuntu 14.04. However, keep in mind that the official installation guide is tested in Ubuntu 16.04 so it might or might not work for Ubuntu 14.04 or needs some twist to make it work. I will post the upstart script later if I can figure it out.

2018-07-15 12:33:42 -0500 answered a question Hello Everyone, I wanted to do Zun service in openstack, but Offciacal openstack docs have not given in Centos pike as they only given in ubuntu. So I can continue zun service ubuntu pike or ubuntu queen, Pls help me anyone???

I have created a ticket for adding another installation guide for CentOS: https://blueprints.launchpad.net/zun/... . It will be picked by if there is a contributor interests in working on it. It should be a straightforward porting from the Ubuntu installation guide.

2018-07-15 12:29:09 -0500 answered a question Zun service makes nova service down !!!

I believe Zun's installation is independent of Nova. I wonder how you installed Zun. We have an installation guide that we suggested users to follow:

However, we don't have an installation guide for Pike. If possible, we would recommend to install the Queens version. If you are using Pike's version of OpenStack, you might consider installing Zun by using virtual environment (http://docs.python-guide.org/en/lates...). This approach should give you an independent python environment for the Zun installation.

2018-07-15 12:18:10 -0500 answered a question There is a possibility to pass arguments for docker when create a container with ZUN ?

This is not implemented, although there is a request for that: https://blueprints.launchpad.net/zun/... . The Zun team would have concerns about the security implication if we supports this option. However, if there is enough request for this feature and there is a volunteer to contribute the code, we can revisit this request.

2016-09-23 09:08:15 -0500 commented question Magnum create bay failed

Could you paste the logs of magnum-api and magnum-conductor?

2016-04-21 15:00:10 -0500 answered a question Magnum support for Ubuntu

Fedora Atomic is a supported OS. For kubernetes, Magnum supports an additional OS, which is CoreOS, but Ubuntu is not support. You could download the images here:

Atomic: https://fedorapeople.org/groups/magnu...

CoreOS: http://beta.release.core-os.net/amd64...

2016-04-19 08:30:27 -0500 received badge  Enthusiast
2016-04-18 09:58:22 -0500 commented question magnum bay create timeout - You are not authorized to use global_index

For the timeout issue, could you type these two commands for me and paste me the output: $ heat stack-list -n $ heat resource-list For details, here is the trouble-shooting guide: http://docs.openstack.org/developer/m...

2016-04-18 09:56:53 -0500 commented question magnum bay create timeout - You are not authorized to use global_index

Actually, there are two issues: the not authorized error and the timeout issue. For the authorization error, could you paste your magnum config file (/etc/magnum/magnum.conf) with credentials removed.

2016-04-10 15:30:10 -0500 commented question Magnum bay create fails with the error (a user and password or token is required. (HTTP 500))

Also, please post the magnum conductor log as well (you can paste it in here http://paste.openstack.org/).

2016-04-10 09:02:52 -0500 commented question Magnum bay create fails with the error (a user and password or token is required. (HTTP 500))

Sorry to hear that. I want to confirm a few things: * Which version of Magnum you are using (i.e. liberty, mitaka or master) * Are you using devstack? If yes, which version you are using? * It would be helpful if you can post the logs and the config file as the author of this question.

2016-04-09 20:56:19 -0500 commented question Magnum bay create fails with the error (a user and password or token is required. (HTTP 500))

Please feel free to let me know if above steps didn't work.

2016-04-09 20:50:41 -0500 commented question Magnum bay create fails with the error (a user and password or token is required. (HTTP 500))

The simplest solution is to turn off Barbican (You don't have to use Barbican in dev environment):

[certificates] cert_manager_type = local

If you want to use Barbican, try to add the admin credentials:

[keystone_authtoken] .. admin_tenant_name = .. admin_password = .. admin_user = ..

2015-11-27 17:19:06 -0500 commented answer How to debug scripts at Heat's SoftwareConfig resource

Thanks. The command is useful, but it is better to have the outputs logged somewhere in the OS. As a result, we don't need to manually re-run the command, which is impossible in a CI system (i.e. gate).

2015-10-23 20:30:40 -0500 received badge  Teacher (source)
2015-10-15 08:25:37 -0500 answered a question magnum quickstart - error "expecting a flannel network_driver"

The command in the quickstart guide was outdated. It should be:

magnum baymodel-create --name k8sbaymodel \
                       --image-id fedora-21-atomic-5 \
                       --keypair-id testkey \
                       --external-network-id public \
                       --dns-nameserver 8.8.8.8 \
                       --flavor-id m1.small \
                       --docker-volume-size 5 \
                       --network-driver flannel \
                       --coe kubernetes

You need to specify network-driver as flannel to create a kubernetes baymodel. The reason is that kubernetes requires Flannel to connect the pods.