Guangrong,

If you ssh into the rancher VM as root (same key), you will be able to run 
kubectl w/o problem.
If you ssh as ubuntu then sudo to root to run kubectl, you will get the error 
msg you saw.  An “export HOME=/root” will fix the problem.

Regards,
Lusheng

From: <[email protected]> on behalf of Guangrong Fu 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>, 
"[email protected]" <[email protected]>
Date: Sunday, October 21, 2018 at 10:22 PM
To: "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>, "VENKATESH KUMAR, VIJAY" 
<[email protected]>, "[email protected]" <[email protected]>, 
"[email protected]" <[email protected]>, "[email protected]" 
<[email protected]>
Subject: [onap-discuss] [oom][integration] "kubectl" commands are failing//答复: 
RE: Help is Needed on SB04


Hi there,



I'm having trouble in performing any operations related to "kubectl" in the 
open lab. Here's the screenshot of the error(s):



[cid:[email protected]]



I've tried the commands under different projects (Integration-SB-04, 
Integration-OOM-Staging-Daily and Integration-OOM-Daily). The same error 
occurred in all of them. Vijay's suggestion didn't seem to work for me.



This is a little bit urgent because it's preventing me from completing the 
pairwise testing. Any help will be sincerely appreciated.



Thanks,

Guangrong








原始邮件
发件人:VENKATESHKUMAR,VIJAY <[email protected]>
收件人:Guangrong Fu <[email protected]>;
抄送人:付光荣10144542;
日 期 :2018年10月20日 19:17
主 题 :RE: Help is Needed on SB04
Hi Guangrong,
The error indicates issue for rancher to communicate with k8s cluster.

I just checked SB04 though and it looks k8s/kubectl are healthy; but the 
bootstrap pod you are trying to execute into though is not valid.

vv770d@pod-onap-01-vjhost:~$ ssh -i ~/onap_dev  
[email protected]<mailto:[email protected]>
ubuntu@onap-oom-rancher:~$ sudo su -
root@onap-oom-rancher:~# kubectl get pods -n onap | grep bootstrap
dev-dcaegen2-dcae-bootstrap-776cf86d49-ljqxm                      1/1       
Running   0          1d
root@onap-oom-rancher:~# kubectl exec -it -n onap 
dev-dcaegen2-dcae-bootstrap-776cf86d49-ljqxm /bin/bash
[root@dev-dcaegen2-dcae-bootstrap-776cf86d49-ljqxm /]#


In some env, it was required explicitly to set home for kubectl to work – but 
dint need in SB04.
export home=/root

Also besides SB04, you could also check this on 
Integration-OOM-Staging-Daily/Integration-OOM-Daily environment tenant; they 
have full setup too – but they are torn down daily.

Thanks,
Vijay

From: Guangrong Fu <[email protected]>
Sent: Friday, October 19, 2018 11:07 PM
To: VENKATESH KUMAR, VIJAY <[email protected]>
Cc: [email protected]
Subject: Re: Help is Needed on SB04

Looping myself in in case I could not access my personal mailbox on Gmail.

Guangrong Fu 
<[email protected]<mailto:[email protected]>>于2018年10月20日周六 上午11:05写道:
Hi Vijay,

Since I have no access to the DCAE project in the open lab, I tried to do 
something in SB04. But when I executed "kubectl" command, errors prompted.

Such as:

root@onap-oom-rancher:~# kubectl get pod -n onap
error: couldn't get version/kind; json parse error: json: cannot unmarshal 
string into Go value of type struct { APIVersion string 
"json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }

root@onap-oom-rancher:~# kubectl exec -it -n onap 
dev-dcaegen2-dcae-bootstrap-776cf86d49-mxzq6 /bin/bash
error: serializer for text/html doesn't exist

etc.

Do you have any experience in this? I am contacting Stephen Gooch for help, but 
he didn't respond.

Thanks,
Guangrong




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13157): https://lists.onap.org/g/onap-discuss/message/13157
Mute This Topic: https://lists.onap.org/mt/27463646/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to