Fix HOST_PREFIX traceback #32

Closed
opened 2021-11-20 11:15:35 +00:00 by ungleich-gitea · 16 comments
(venv) [13:44] diamond:ucloud% ./scripts/ucloud                                
Traceback (most recent call last):
  File "./scripts/ucloud", line 8, in <module>
    from ucloud.sanity_checks import check
  File "/home/nico/vcs/ucloud/venv/lib/python3.8/site-packages/ucloud-0.0.1-py3.8.egg/ucloud/sanity_checks.py", line 5, in <module>
    from ucloud.config import env_vars
  File "/home/nico/vcs/ucloud/venv/lib/python3.8/site-packages/ucloud-0.0.1-py3.8.egg/ucloud/config.py", line 28, in <module>
    host_pool = HostPool(etcd_client, env_vars.get('HOST_PREFIX'))
  File "/home/nico/vcs/ucloud/venv/lib/python3.8/site-packages/python_decouple-3.3-py3.8.egg/decouple.py", line 68, in get
    raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: HOST_PREFIX not found. Declare it as envvar or define a default value.
(venv) [13:44] diamond:ucloud% 


ping @llnu @ahmedbilal

``` (venv) [13:44] diamond:ucloud% ./scripts/ucloud Traceback (most recent call last): File "./scripts/ucloud", line 8, in <module> from ucloud.sanity_checks import check File "/home/nico/vcs/ucloud/venv/lib/python3.8/site-packages/ucloud-0.0.1-py3.8.egg/ucloud/sanity_checks.py", line 5, in <module> from ucloud.config import env_vars File "/home/nico/vcs/ucloud/venv/lib/python3.8/site-packages/ucloud-0.0.1-py3.8.egg/ucloud/config.py", line 28, in <module> host_pool = HostPool(etcd_client, env_vars.get('HOST_PREFIX')) File "/home/nico/vcs/ucloud/venv/lib/python3.8/site-packages/python_decouple-3.3-py3.8.egg/decouple.py", line 68, in get raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option)) decouple.UndefinedValueError: HOST_PREFIX not found. Declare it as envvar or define a default value. (venv) [13:44] diamond:ucloud% ``` ping @llnu @ahmedbilal
nico was assigned by ungleich-gitea 2021-11-20 11:15:35 +00:00
Author

mentioned in commit 433a3b9817

mentioned in commit 433a3b9817842113e5d0d5e027ab7517283b12e8
Author

closed

closed
Author

Now, we are providing default conf, so this shouldn't be problem anymore.

Now, we are providing default conf, so this shouldn't be problem anymore.
Author

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.
Author

mentioned in commit 433a3b9817

mentioned in commit 433a3b9817842113e5d0d5e027ab7517283b12e8
Author

closed

closed
Author

Now, we are providing default conf, so this shouldn't be problem anymore.

Now, we are providing default conf, so this shouldn't be problem anymore.
Author

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.
Author

mentioned in commit 433a3b9817

mentioned in commit 433a3b9817842113e5d0d5e027ab7517283b12e8
Author

closed

closed
Author

Now, we are providing default conf, so this shouldn't be problem anymore.

Now, we are providing default conf, so this shouldn't be problem anymore.
Author

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.
Author

mentioned in commit 433a3b9817

mentioned in commit 433a3b9817842113e5d0d5e027ab7517283b12e8
Author

closed

closed
Author

Now, we are providing default conf, so this shouldn't be problem anymore.

Now, we are providing default conf, so this shouldn't be problem anymore.
Author

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.

@nico Didn't you follow https://www.ungleich.ch/ucloud/setup-install.html#install-and-configure-ucloud . If you use .env mentioned there then you wouldn't have issues.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: uncloud/uncloud#32
No description provided.