Error on running onap_deploy_all.sh script
When launched ONAP deployment script got errors.
Could you take a look - is this again a file permission issue?
Or user credentials related issue - I used another user account than aarna,
of course ensured all master/workers nodes have ssh connectivity with it.
And actually the same "access denied" error when tried aarna account:
aarna@anod-master:~$ curl https://kubernetes-charts.storage.googleapis.com/index.yaml
<?xml version='1.0' encoding='UTF-8'?>AccessDenied
Access denied.
So error accessing index.yaml "403 Forbidden", see below:
$ nohup ./onap_deploy_all.sh --all &
=>
$ tail -f nohup.out
. . .
Error: error initializing: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden
Error: Couldn't load repositories file (/home/yurick/.helm/repository/repositories.yaml).
You might need to run helm init
(or helm init --client-only
if tiller is already installed)
Error: Couldn't load repositories file (/home/yurick/.helm/repository/repositories.yaml).
You might need to run helm init
(or helm init --client-only
if tiller is already installed)
~/onap-custom/util-scripts ~/onap-custom/setup-utils
Step 4: Creating Openstack resources and other configuration...
ERROR : Step 4
Create Openstack resources failed! Aborting the deployment!!
Comments
-
Please run the script from aarna use account only as all the scripts are designed to run from aarna user.
Please share the complete nohup.out file.
Make sure the tiller pod is Running. You can see the pod status by executing this command: kubectl get pods -n kube-system |grep -i tiller
0 -
Ok, thank you for the comment. Will redo all with aarna account and comment if get all fully completed.
0 -
When using aarna account this step supposed to be done in 4.1.1
Where from can I download/get those aarna.pem and aarna.ppk?"IN-CLASS MAC/Linux USERS:
What we are going to do
Download aarna.pem and aarna.ppk.
. . ."0 -
You do not need the aarna.pem. Your GCP always resets the /home/aarna/.ssh/authorized_keys contents when it brings up an instance. So you cannot directly access the aarna user
The workaround is to follow the below steps to login into your GCP instance.
SSH into your GCP instance
$ gcloud compute ssh lfn-jump-01
Go to the sudo mode
$ sudo -i
Go the aarna user shell
su - aarna
Check the home folder is /home/aarna
echo $HOME
Now follow the deployment guide
steps.
Please note that you will have to go to the aarna user shell
to execute all commands as per the LFN lab document
If you can you can generate SSH key pair and include the Public key under
/home/aarna/.ssh/authorized_keys file to directly access the aarna user .
0 -
Thank you, got to the last 4.3 exercise where I supposed to open Horizon UI and stuck there.
*** If using gcloud compute ssh proxy and localhost:5000 - got an empty reply:
$ gcloud compute ssh --zone us-central1-f openstack-01 -- -N -D localhost:5000
=>
$ curl -v localhost:5000/v3/
- Trying 127.0.0.1:5000...
- TCP_NODELAY set
- Connected to localhost (127.0.0.1) port 5000 (#0)
GET /v3/ HTTP/1.1
Host: localhost:5000
User-Agent: curl/7.68.0
Accept: />
- Empty reply from server
- Connection #0 to host localhost left intact
curl: (52) Empty reply from server
*** If trying to go directly to openstack-01 host by external-ip - got such json-response:
http://
:5000/v3/
=>
{"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://35.222.10.214:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}}*** If connect first to openstack-01 by "gcloud compute ssh" and then open http://
:5000/v3/ - got the same json-response as with external-ip. Should I see instead an Openstack login page?
Could you suggest how to troubleshoot Horizon/Openstack to find what is wrong here?0 -
Bellow command will create a tunnel from openstack-01 to your localhost.
This will just create connection. And empty reply only you will get
$ gcloud compute ssh --zone us-central1-f openstack-01 -- -N -D localhost:5000After that you need access the UI through the Firefox browser using the Internal IP address
You can get the Horizon URL from OS_AUTH_URL and OS_PASSWORD
attributes. It is usually http:///
cat /home/aarna/overclourc.v3Example URL
OpenStack Horizon URL = http://192.168.37.17
OpenStack Horizon password = Zeb7AhmTn68pKbFBRXMBfjPPw0 -
Thank you for the quick answer.
Yes I can get to openstack-01 from local system by establishing gcloud ssh tunnel:
overcloudrc.v3:
export OS_AUTH_URL=http://10.128.0.19:5000/v3NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
. . .
openstack-01 us-central1-f custom-8-32768 10.128.0.19 35.222.10.214 RUNNING$ gcloud compute ssh --zone us-central1-f openstack-01 -- -N -D localhost:5000
. . .Then when in a local Firefox browser go to Horizon URL: http://10.128.0.19:5000/v3 (or just http://10.128.0.19)
I get always plain-text json (instead of login page html?):{"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://10.128.0.19/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}}
Could you comment how can I troubleshoot this? Or do you see something done wrongly here?
0 -
hi @YuriiKantonistov
Could you please try access with https://10.128.0.19 check your able get the login page or not.I would like to take a look at this setup to debug, is it possible to enable access to this VM by adding my public key to .ssh/authorized_keys ? and share VM Public IP and username?.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFYPj3SM4SUQadeWaoQE9YCR9GvUDFzc+f2edc/ycDUPc5tJXbCURwEi228k8Aa0vNL7A37ex4VRFoAeT/HVIMja2q93QuvE5UvJYG5erPapjBfoRpIzfw2QQ9bnAuJ2CRArER1lcogPP8OVPJ9os7nkHQlAn9Qq9I2aqnsGpb5peUgXBYGnHRCIZtol+1WlqCvPtLdoE4xWpc4frM8xvV1LbZ4kKsWNUtYcRPk/nOe8ZoJd9AF/KBOwHhydCk2Ic6OcISmsCZWCd3B8hHZSVCq7CpqCtrPw/ckw+7d+bl2sSrpe/yr9AE7x59gJN56om9J9/i1s1F6+lQTRAUDDz2z0FYY0rihB67lQw9+SLYXePEO7fvhVvkGKTJz3F7QF4FPmfg+8Z5ebY0qYimfnBs/4YfYEWekRPEk6QMFzJWVzvdV06nHUmIe1QI/LAvpqL2KVUACquxFz18/+yvKK7CigwZmiHuswWtR/Wso2yY1riVvPRf/cPEZpV0zOG4NGk= prem@DESKTOP-6FF9ECJ
0
Categories
- All Categories
- 218 LFX Mentorship
- 218 LFX Mentorship: Linux Kernel
- 791 Linux Foundation IT Professional Programs
- 353 Cloud Engineer IT Professional Program
- 178 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 147 Cloud Native Developer IT Professional Program
- 137 Express Training Courses
- 137 Express Courses - Discussion Forum
- 6.2K Training Courses
- 47 LFC110 Class Forum - Discontinued
- 71 LFC131 Class Forum
- 42 LFD102 Class Forum
- 226 LFD103 Class Forum
- 18 LFD110 Class Forum
- 38 LFD121 Class Forum
- 18 LFD133 Class Forum
- 7 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 4 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 697 LFD259 Class Forum
- 111 LFD272 Class Forum
- 4 LFD272-JP クラス フォーラム
- 12 LFD273 Class Forum
- 148 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 2 LFS116 Class Forum
- 4 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 5 LFS144 Class Forum
- 4 LFS145 Class Forum
- 2 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 2 LFS157 Class Forum
- 29 LFS158 Class Forum
- 7 LFS162 Class Forum
- 2 LFS166 Class Forum
- 4 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 31 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム
- 18 LFS203 Class Forum
- 134 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 48 LFS242 Class Forum
- 38 LFS243 Class Forum
- 15 LFS244 Class Forum
- 2 LFS245 Class Forum
- LFS246 Class Forum
- 49 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 153 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 7 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 118 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 22 LFS268 Class Forum
- 30 LFS269 Class Forum
- LFS270 Class Forum
- 202 LFS272 Class Forum
- 2 LFS272-JP クラス フォーラム
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 9 LFW111 Class Forum
- 259 LFW211 Class Forum
- 181 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 796 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 103 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 758 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 353 Ubuntu
- 468 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 63 Mobile Computing
- 18 Android
- 33 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 22 Study Material
- 805 Programming and Development
- 303 Kernel Development
- 484 Software Development
- 1.8K Software
- 261 Applications
- 183 Command Line
- 3 Compiling/Installing
- 987 Games
- 317 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)