Guangrong,

Not sure what the difference is but its working for me .

Only think I noticed is you are doing “sudo -s” instead of “sudo su”

The .helm configuration is under /root so I think you need to use “sudo su”.

If I just do sudo -s I get the same error as you. If I do sudo su I get the 
correct behavoir.

Brian


*** System restart required ***
Last login: Mon Oct 22 07:13:22 2018 from 10.12.25.157
ubuntu@onap-oom-rancher:~$ sudo su
root@onap-oom-rancher:/home/ubuntu# kubectl -n onap get pod | grep boot
dev-dcaegen2-dcae-bootstrap-776cf86d49-ljqxm                      1/1       
Running   0          3d
root@onap-oom-rancher:/home/ubuntu# kubectl get pod -n onap | grep boot
dev-dcaegen2-dcae-bootstrap-776cf86d49-ljqxm                      1/1       
Running   0          3d

From: [email protected] <[email protected]> On Behalf Of 
Guangrong Fu
Sent: Sunday, October 21, 2018 11:15 PM
To: [email protected]; [email protected]
Cc: [email protected]; VENKATESH KUMAR, VIJAY <[email protected]>; 
[email protected]; [email protected]
Subject: [onap-discuss] 答复: [oom][integration] "kubectl" commands are 
failing//答复: RE: Help is Needed on SB04


Here's the complete steps I've tried:



[cid:[email protected]]



Thanks,

Guangrong








原始邮件
发件人:付光荣10144542
收件人:[email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>;
抄送人:Guangrong Fu 
<[email protected]<mailto:[email protected]>>;[email protected] 
<[email protected]<mailto:[email protected]>>;[email protected] 
<[email protected]<mailto:[email protected]>>;[email protected] 
<[email protected]<mailto:[email protected]>>;[email protected] 
<[email protected]<mailto:[email protected]>>;
日 期 :2018年10月22日 10:22
主 题 :[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]<mailto:[email protected]>>
收件人:Guangrong Fu <[email protected]<mailto:[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]<mailto:[email protected]>>
Sent: Friday, October 19, 2018 11:07 PM
To: VENKATESH KUMAR, VIJAY <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[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 (#13171): https://lists.onap.org/g/onap-discuss/message/13171
Mute This Topic: https://lists.onap.org/mt/27463959/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to