[openstack-dev] [Tacker]
hyunsikYang
yangun at dcn.ssu.ac.kr
Fri Apr 24 11:21:56 UTC 2020
I am not sure What kind of error you got, but, according to your error, it
is just a timeout error.
After you get the error message, You can check kubernetes component status.
if it is not working properly, we should find a reason.
2020년 4월 23일 (목) 오후 11:15, Ivandro <i201822117 at hust.edu.cn>님이 작성:
> Hello,
>
> The second error is fixed. it was an space on the local.conf file before
> ip addres value: "HOST_IP= 192.168.11.111".
>
> Now, here are the new error (full logs in attachment):
>
> *++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:553 sleep 1*
> *++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:548 curl -o
> /dev/null -s http://192.168.11.111:8080 <http://192.168.11.111:8080>*
> *++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:549 echo -n .*
> *.+++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:550 date +%s*
> *++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:550 local
> curr_time=1587649065*
> *++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:551 local
> time_diff=301*
> *++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:552 [[ 301 -le
> 300 ]]*
> *++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:552 die 'Timed
> out waiting for Kubernetes API Server'*
> *++functions-common:die:193 local exitcode=1*
> *[Call Trace]*
> *./stack.sh:1397:run_phase*
> */opt/stack/devstack/functions-common:1785:run_plugins*
> */opt/stack/devstack/functions-common:1752:source*
>
> */opt/stack/kuryr-kubernetes/devstack/plugin.sh:1068:run_k8s_controller_manager*
> */opt/stack/kuryr-kubernetes/devstack/plugin.sh:643:wait_for*
> */opt/stack/kuryr-kubernetes/devstack/plugin.sh:552:die*
> *[ERROR] /opt/stack/kuryr-kubernetes/devstack/plugin.sh:Timed out*
> *Error on exit*
> *nova-compute: no process found*
> *neutron-dhcp-agent: no process found*
> *neutron-l3-agent: no process found*
> *neutron-metadata-agent: no process found*
> *neutron-openvswitch-agent: no process found*
> *stack at DevstackMaster:~/devstack$*
>
> BR.
>
>
> On 4/23/2020 8:13 PM, hyunsikYang wrote:
>
> Hi.
> for First error , You can modify code like below and it works.
> outfile.write(ts_line.encode('utf-8','surrogatepass'))
>
> For the second error, I can't see the error log. Please check above that
> you captured.
>
> thanks
>
>
> 2020년 4월 23일 (목) 오후 3:14, Ivandro <i201822117 at hust.edu.cn>님이 작성:
>
>> Hello Mr. Hyunik,
>>
>> I try to run a new installation using the local.conf file that you
>> suggest and the installation was not successful. here are additional
>> information about my setup:
>>
>> - new installation and update ubuntu 18.04.4;
>>
>> - on vmware workstation, 8Gb RAM, 100G SSD HD, 4 vCPU;
>>
>> - local file and logs in attachment.
>>
>> - I used the same steps as described below (add user, download devstack,
>> start the installation, ...)
>>
>> - before the installation, only the python3.6 was installed:
>>
>> *john at opestack:/lib$ ls /usr/bin/py**
>> */usr/bin/py3clean /usr/bin/pydoc3.6 /usr/bin/pyjwt3
>> /usr/bin/python3-jsonpointer /usr/bin/python3m*
>> */usr/bin/py3compile /usr/bin/pygettext3 /usr/bin/python3
>> /usr/bin/python3-jsonschema*
>> */usr/bin/py3versions /usr/bin/pygettext3.6 /usr/bin/python3-jsondiff
>> /usr/bin/python3.6*
>> */usr/bin/pydoc3 /usr/bin/pyhtmlizer3 /usr/bin/python3-jsonpatch
>> /usr/bin/python3.6m*
>>
>>
>> - after the installation here are the python installation info:
>>
>> *john at DevstackMaster:~$ ls -la /usr/bin/python**
>> *lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python -> python2.7*
>> *lrwxrwxrwx 1 root root 9 Apr 16 2018 /usr/bin/python2 ->
>> python2.7*
>> *-rwxr-xr-x 1 root root 3637096 Apr 16 01:20 /usr/bin/python2.7*
>> *lrwxrwxrwx 1 root root 9 Oct 25 2018 /usr/bin/python3 ->
>> python3.6*
>> *lrwxrwxrwx 1 root root 16 Oct 25 2018 /usr/bin/python3-config ->
>> python3.6-config*
>> *-rwxr-xr-x 1 root root 1018 Oct 29 2017 /usr/bin/python3-jsondiff*
>> *-rwxr-xr-x 1 root root 3661 Oct 29 2017 /usr/bin/python3-jsonpatch*
>> *-rwxr-xr-x 1 root root 1342 May 2 2016 /usr/bin/python3-jsonpointer*
>> *-rwxr-xr-x 1 root root 398 Nov 16 2017 /usr/bin/python3-jsonschema*
>> *-rwxr-xr-x 2 root root 4526456 Apr 18 09:56 /usr/bin/python3.6*
>> *lrwxrwxrwx 1 root root 33 Apr 18 09:56 /usr/bin/python3.6-config ->
>> x86_64-linux-gnu-python3.6-config*
>> *-rwxr-xr-x 2 root root 4526456 Apr 18 09:56 /usr/bin/python3.6m*
>> *lrwxrwxrwx 1 root root 34 Apr 18 09:56 /usr/bin/python3.6m-config
>> -> x86_64-linux-gnu-python3.6m-config*
>> *lrwxrwxrwx 1 root root 10 Oct 25 2018 /usr/bin/python3m ->
>> python3.6m*
>> *lrwxrwxrwx 1 root root 17 Oct 25 2018 /usr/bin/python3m-config ->
>> python3.6m-config*
>>
>>
>> It occurred two errors (Fie "ERROR ONE AND TWO.txt" in attachment: Here
>> are the description:
>> 1: on the first error, I changed line 98 on file *"/opt/stack/devstack/tools/outfilter.py"
>> from **"*outfile.write(ts_line.encode('utf-8'))" to
>> "outfile.write(ts_line.encode('utf-8','surrogatepass'))". then executed the
>> command ./unstack, ./stack
>>
>> *Created symlink
>> /etc/systemd/system/multi-user.target.wants/memcached.service →
>> /lib/systemd/system/memcached.service.*
>> *Traceback (most recent call last):*
>> * File "/opt/stack/devstack/tools/outfilter.py", line 104, in <module>*
>> * sys.exit(main())*
>> * File "/opt/stack/devstack/tools/outfilter.py", line 98, in main*
>> * outfile.write(ts_line.encode('utf-8'))*
>> *UnicodeEncodeError: 'utf-8' codec can't encode characters in position
>> 104-106: surrogates not allowed*
>> *stack at DevstackMaster:~/devstack$*
>>
>>
>> 2: here are the second error:
>>
>> +./stack.sh:main:796 PYPI_ALTERNATIVE_URL=
>> +./stack.sh:main:796
>> /opt/stack/devstack/tools/install_pip.sh
>> bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
>> /opt/stack/devstack/.localrc.auto: line 2: 192.168.11.111: command not
>> found
>> ++./stack.sh:main:796 err_trap
>> ++./stack.sh:err_trap:574 local r=127
>> stack.sh failed: full log in
>> /opt/stack/logs/stack.sh.log.2020-04-23-132112
>> Error on exit
>> stack at DevstackMaster:~/devstack$
>>
>>
>> Hope you can help e solve this issue.
>>
>>
>> BR
>>
>>
>>
>> On 4/23/2020 9:58 AM, hyunsikYang wrote:
>>
>> Hi. lvandro.
>>
>> I think you have a problem with os.
>>
>> Yesterday, I checked the master version of tacker using devstack. And It
>> installed well.
>>
>> I used ubuntu 18.04 and used the master version devstack.
>>
>> I attached my local conf option like below. Please check it .
>>
>> If you have any questions, feel free to contact me and tacker ML.
>>
>>
>> Thank you.
>>
>>
>>
>> ----------------------
>> [[local|localrc]]
>> HOST_IP= ip..
>>
>> ADMIN_PASSWORD=1111
>> DATABASE_PASSWORD=$ADMIN_PASSWORD
>> RABBIT_PASSWORD=$ADMIN_PASSWORD
>> SERVICE_PASSWORD=$ADMIN_PASSWORD
>> SERVICE_TOKEN=$ADMIN_PASSWORD
>> IDENTITY_API_VERSION=3
>>
>> LOGFILE=$DEST/logs/stack.sh.log
>> LOGDAYS=2
>> LOG_COLOR=True
>>
>> ENABLE_DEBUG_LOG_LEVEL=false
>>
>> # Disable security groups
>> Q_USE_SECGROUP=False
>>
>>
>> #enable_plugin os-vif https://opendev.org/openstack/os-vif master
>>
>> ## kubernetes master node
>> ##########################
>> ## Loadbalance
>> ##########################
>> ## case of octavia
>> LIBS_FROM_GIT+=python-octaviaclient
>> ENABLED_SERVICES+=,octavia,o-api,o-cw,o-hm,o-hk
>> enable_plugin octavia https://opendev.org/openstack/octavia master
>> enable_plugin octavia-dashboard
>> https://opendev.org/openstack/octavia-dashboard master
>> # Increase Octavia amphorae timeout so that the first LB amphora has time
>> to
>> # build and boot
>> #IMAGE_URLS+=",
>> http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
>> IMAGE_URLS+=",
>> http://download.cirros-cloud.net/0.3.6/cirros-0.3.6-x86_64-disk.img"
>>
>>
>> #!# kubernetes and docker environment
>> enable_plugin kuryr-kubernetes
>> https://opendev.org/openstack/kuryr-kubernetes master
>> enable_plugin devstack-plugin-container
>> https://opendev.org/openstack/devstack-plugin-container master
>>
>> #!# Etcd
>> ENABLED_SERVICES+=,etcd3
>>
>> #!# Kubernetes-master
>>
>> ENABLED_SERVICES+=,kubernetes-api,kubernetes-controller-manager,kubernetes-scheduler
>>
>> #!# Kubelet
>> ENABLED_SERVICES+=,kubelet
>>
>> #!# Kuryr watcher
>> ENABLED_SERVICES+=,kuryr-kubernetes
>>
>> #!# Kuryr Daemon
>> ENABLED_SERVICES+=,kuryr-daemon
>> KUBERNETES_VIM=True
>>
>>
>>
>> # Tacker
>> enable_plugin heat https://opendev.org/openstack/heat master
>> enable_plugin networking-sfc https://opendev.org/openstack/networking-sfc
>> master
>> enable_plugin barbican https://opendev.org/openstack/barbican master
>> enable_plugin mistral https://opendev.org/openstack/mistral.git master
>> enable_plugin tacker https://opendev.org/openstack/tacker.git master
>> USE_BARBICAN=True
>>
>> # alarm
>> enable_plugin ceilometer https://opendev.org/openstack/ceilometer master
>> enable_plugin aodh http://opendev.org/openstack/aodh master
>>
>> disable_service tempest swift
>>
>> [[post-config|$OCTAVIA_CONF]]
>> [controller_worker]
>> amp_active_retries = 9999
>>
>> [[post-config|$NEUTRON_DHCP_CONF]]
>> [DEFAULT]
>> enable_isolated_metadata = True
>>
>>
>>
>>
>>
>> 2020년 4월 23일 (목) 오전 3:30, Ivandro <i201822117 at hust.edu.cn>님이 작성:
>>
>>> Hello Mr. Yasufumi,
>>>
>>> Sorry for later replay. I will be replaying to your feedback timely.
>>>
>>> hope to have your support and if possible, guide on how to
>>> troubleshooting.
>>>
>>> here are my scenario:
>>>
>>> I want to install tacker project using the following guide:
>>> https://docs.openstack.org/tacker/train/install/devstack.html
>>>
>>> My environment info: 2 ubuntu server 18.04.4 LTS, VMWare workstation, 6G
>>> RAM, 100G SSD HD, 2vCPU.
>>>
>>> Am trying to install both master branch and stable/train, on each
>>> server. Please find in attachment the local.conf file used for each
>>> installation..
>>>
>>> MASTER BRANCH REPORT:
>>>
>>> Commands used:
>>>
>>> ##User add
>>> sudo useradd -s /bin/bash -d /opt/stack -m stack
>>> echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
>>> sudo su - stack
>>>
>>> ##Download openstack Train branch
>>> git clone https://opendev.org/openstack-dev/devstack -b stable/train
>>> cd devstack
>>> vi local.conf #Use the all in one config from manual page
>>> ## RECLONE=yes
>>>
>>> ##Start installation
>>> ./stack.sh
>>>
>>> ERROR INFO:
>>>
>>> ++/opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:552 die 'Timed
>>> out waiting for Kubernetes API Server'
>>> ++functions-common:die:193 local exitcode=1
>>> [Call Trace]
>>> ./stack.sh:1400:run_phase
>>> /opt/stack/devstack/functions-common:1785:run_plugins
>>> /opt/stack/devstack/functions-common:1752:source
>>>
>>> /opt/stack/kuryr-kubernetes/devstack/plugin.sh:1068:run_k8s_controller_manager
>>> /opt/stack/kuryr-kubernetes/devstack/plugin.sh:643:wait_for
>>> /opt/stack/kuryr-kubernetes/devstack/plugin.sh:552:die
>>> [ERROR] /opt/stack/kuryr-kubernetes/devstack/plugin.sh:Timed out
>>> Error on exit
>>> nova-compute: no process found
>>> neutron-dhcp-agent: no process found
>>> neutron-l3-agent: no process found
>>> neutron-metadata-agent: no process found
>>> neutron-openvswitch-agent: no process found
>>> full logs in attachment file master.rar
>>>
>>>
>>>
>>>
>>> TRAIN BRANCH INSTALLATION:
>>>
>>> Commands used:
>>>
>>> ##User add
>>> sudo useradd -s /bin/bash -d /opt/stack -m stack
>>> echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
>>> sudo su - stack
>>>
>>> ##Download openstack Train branch
>>> git clone https://opendev.org/openstack-dev/devstack -b stable/train
>>> cd devstack
>>> vi local.conf #Use the all in one config from manual page
>>> ## RECLONE=yes
>>>
>>> ##Start installation
>>> ./stack.sh
>>>
>>> then it return the following error:
>>>
>>> Obtaining file:///opt/stack/python-blazarclient
>>> python-blazarclient requires Python '>=3.6' but the running Python is
>>> 2.7.17
>>> You are using pip version 9.0.3, however version 20.0.2 is available.
>>> You should consider upgrading via the 'pip install --upgrade pip'
>>> command.
>>> Error on exit
>>> please find in attachment the full logs for this error in file named
>>> train.rar
>>>
>>>
>>> Please let me know if you need additional information.
>>>
>>>
>>> BR
>>>
>>>
>>>
>>>
>>> On 4/19/2020 4:38 AM, Yasufumi Ogawa wrote:
>>> > Hi,
>>> >
>>> > Could you make a bug report for sharing your problem exactly if
>>> possible?
>>> >
>>> > On 2020/04/18 12:51, Ivandro wrote:
>>> >> Hello,
>>> >>
>>> >> I have been trying to install the tacker project in a VM, following
>>> >> the instruction from this url:
>>> >> https://docs.openstack.org/tacker/train/install/devstack.html based
>>> >> on devstack but unsuccessful. Is there a link to download an already
>>> >> installed VM with tacker?
>>> > I'd like to confirm that we have already have such a VM, or can
>>> provide.
>>> >
>>> > Regards,
>>> > Yasufumi
>>> >
>>> >>
>>> >>
>>> >> BR
>>>
>>
>>
>> --
>>
>> *----------------------------------------------------------------*
>>
>> *Hyunsik Yang (Ph. D candidate)*
>>
>> *DCN laboratory / School of Electronic Engineering*
>>
>> *Soongsil University *
>>
>> *511 Sangdo-dong Dongjak-gu*
>>
>> *Seoul, 156-743 Korea*
>>
>> *TEL : (+82)-2-820-0841 *
>>
>> *M.P: (+82)-10-9005-7439*
>>
>>
>
> --
>
> *----------------------------------------------------------------*
>
> *Hyunsik Yang (Ph. D candidate)*
>
> *DCN laboratory / School of Electronic Engineering*
>
> *Soongsil University *
>
> *511 Sangdo-dong Dongjak-gu*
>
> *Seoul, 156-743 Korea*
>
> *TEL : (+82)-2-820-0841 *
>
> *M.P: (+82)-10-9005-7439*
>
>
--
*----------------------------------------------------------------*
*Hyunsik Yang (Ph. D candidate)*
*DCN laboratory / School of Electronic Engineering*
*Soongsil University *
*511 Sangdo-dong Dongjak-gu*
*Seoul, 156-743 Korea*
*TEL : (+82)-2-820-0841 *
*M.P: (+82)-10-9005-7439*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200424/32174c72/attachment-0001.html>
More information about the openstack-discuss
mailing list