答复: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

2018-08-31 Thread harry huang
Gerard

Thanks for trying compass and bringing up those questions.
Please also notice with patch https://gerrit.opnfv.org/gerrit/#/c/60589/ 
merged, variable VIRT_NUMBER is no longer needed.

Best Regards
Harry

发件人: opnfv-tech-discuss@lists.opnfv.org 
[mailto:opnfv-tech-discuss@lists.opnfv.org] 代表 Gerard Damm
发送时间: 2018年8月31日 4:28
收件人: opnfv-tech-discuss@lists.opnfv.org
主题: Re: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

Hi,
Just a note on that thread: the latest release of Compass4nfv allowed to solve 
the problem.
Best regards,
Gerard


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com


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

View/Reply Online (#21900): 
https://lists.opnfv.org/g/opnfv-tech-discuss/message/21900
Mute This Topic: https://lists.opnfv.org/mt/25137172/21656
Group Owner: opnfv-tech-discuss+ow...@lists.opnfv.org
Unsubscribe: https://lists.opnfv.org/g/opnfv-tech-discuss/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



答复: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

2018-08-05 Thread harry huang
Hi Gerard, Martin

Issue is fixed and I have successfully deployed noha scenario on hpe32.
You can pull the new master branch of compass4nfv and try again.
And it's also a good feedback from you which can help to improve the usage of 
compass.
Indeed it seems quite redundant to export VIRT_NUMBER instead of getting it 
from the scenario.
I will working on getting rid of VIRT_NUMBER today and let you know when it's 
done.

Regards
Harry

-邮件原件-
发件人: opnfv-tech-discuss@lists.opnfv.org 
[mailto:opnfv-tech-discuss@lists.opnfv.org] 代表 Gerard Damm
发送时间: 2018年8月3日 2:58
收件人: opnfv-tech-discuss@lists.opnfv.org
抄送: huangxiangyu ; Klozik Martin 

主题: Re: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

Hi,

Yes, like on the Apex thread, there's got to be some implicit setup (such as 
tool installations and updates, and indeed maybe reboot) to be done, and these 
initial config problems appear only when running a procedure for the first time 
on a brand new server where nothing else has ever run before.

The same procedure may run fine on an "old" server, but can fail on a new one.
These exact required initial steps will have to be identified/documented and 
included in scripts.

I guess including the booking of a new server daily in CI will help validate 
the initial configuration steps.

Moreover, the procedure could be hardened by trying it in multiple cases: new 
server, twice on new server (after a delete or not), and the same on an "old" 
server.

And then it depends also on scenarios (e.g., success for HA, failure for NOHA, 
depending on environment variables like VIRT_NUMBER).

About opnfv-clean: that was in the Apex thread, not the Compass4nfv thread. So 
the tool came from installing the Apex packages and RPMs:
https://wiki.opnfv.org/pages/viewpage.action?pageId=26837081
or:
https://wiki.opnfv.org/display/storperf/LaaS+Setup+For+Development#LaaSSetupForDevelopment-InstallOPNFVApex

About picking an option: yes, agreed. Harry had recommended the first option 
(build the ISO file rather than download it). Let's wait for the analysis by 
Harry going on hpe32 for NOHA, then confirm.

As always, thanks all for your feedback !

BR,
Gerard


> -Original Message-
> From: Klozik Martin [mailto:martin.klo...@tieto.com]
> Sent: Thursday, August 2, 2018 3:16 AM
> To: Gerard Damm (Product Engineering Service) ; 
> opnfv-tech-discuss@lists.opnfv.org
> Cc: huangxiangyu 
> Subject: Re: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on 
> LaaS
> x86 server
>
> ** This mail has been sent from an external source. Treat hyperlinks 
> and attachments in this email with caution**
>
> Hi Gerard,
>
> I did a few checks today with following outcome:
>
> * (HPE15) installation with VIRT_NUMBER=1 does not pass "reboot_hosts"
> stage, it simply terminates after this messages is shown; that's why I 
> was not able to see anything else yesterday
> * (HPE15) installation with VIRT_NUMBER=2 went correctly (i.e. I see 
> the "Installation Complete!" banner :-))
> * I tried to retest it (with VIRT_NUMBER=2) at "clean" server HPE16 
> and I hit the same issue as you did (i.e. RuntimeError: OS 
> installation timeout)
>
> I'm wondering if it can be related to the OS state. May be we should 
> firstly try to do an apt update & upgrade (may be even followed by the 
> sever reboot), before execution of compass installation. I'll give it a try 
> at another server.
>
> One additional question. How did you "installed" opnfv-clean binary at 
> your server? I've used alien to create a deb package from
> http://artifacts.opnfv.org/apex/master/opnfv-apex-common-2.1-
> 20160306.noarch.rpm. After its installation at HPE15, I was able to 
> execute opnfv-clean, but I doubt that it works. So I'm wondering if it 
> is enough to install this package or other two rpms/debs are also 
> required (in that case I would expect that such dependency would be 
> enforced by package spec file...).
>
> BTW, I did a small updates to your compass install script. May be it's 
> time to comment out one of the options, so it is directly usable for 
> OPNFV deployment at LaaS server. What do you think?
>
> Cheers,
> Martin
>
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com




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

View/Reply Online (#21708): 

答复: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

2018-08-02 Thread harry huang
/client.py", line 968, in 
get_ansible_print

raise RuntimeError("OS installation timeout")

RuntimeError: OS installation timeout

+ RET=1

+ sleep 25

+ [[ 1 -eq 0 ]]

+ /bin/false

+ exit 1







2) quickstart.sh (i.e. in master branch, build.sh, ha scenario, deploy.sh)



error:



2018-07-31 21:57:59,756 p=130 u=root |  hostname: host2

2018-07-31 21:57:59,782 p=130 u=root |  
host=compass-deck,url=/api/clusterhosts/2/state,body={"state": 
"ERROR"},headers={'Content-type': 'application/json', 'Accept': '*/*', 
'X-Auth-Token': '$1$UohR2peC$xirMX8ctPjiZv5d1amTDf/'}

2018-07-31 21:57:59,817 p=130 u=root |  notify host status success!!! 
status=200, body={

"severity": "INFO",

"created_at": "2018-07-31 21:37:19",

"updated_at": "2018-07-31 21:57:59",

"id": 2,

"state": "ERROR",

"ready": false,

"percentage": 0.0,

"message": ""

}



2018-07-31 21:57:59,818 p=130 u=root |  hostname: host1

2018-07-31 21:57:59,845 p=130 u=root |  
host=compass-deck,url=/api/clusterhosts/1/state,body={"state": 
"ERROR"},headers={'Content-type': 'application/json', 'Accept': '*/*', 
'X-Auth-Token': '$1$F7YoEKlk$1/6TRpRf7crU2U6t8S0lE1'}

2018-07-31 21:57:59,892 p=130 u=root |  notify host status success!!! 
status=200, body={

"severity": "INFO",

"created_at": "2018-07-31 21:37:19",

"updated_at": "2018-07-31 21:57:59",

"id": 1,

"state": "ERROR",

"ready": false,

"percentage": 0.0,

"message": ""

}



Traceback (most recent call last):

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1136, in 

main()

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1131, in main

deploy()

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1086, in deploy

client.get_installing_progress(cluster_id, ansible_print)

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1029, in 
get_installing_progress

_get_installing_progress()

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1015, in 
_get_installing_progress

(cluster_id, status, cluster_state)

RuntimeError: ('get cluster %s state status %s: %s, error', (1, 200, 
{u'status': {u'completed_hosts': 0, u'total_hosts': 5, u'installing_hosts': 0, 
u'failed_hosts': 5}, u'severity': u'ERROR', u'created_at': u'2018-07-31 
21:37:19', u'message': u'total 5, installing 0, completed: 0, error 5', 
u'updated_at': u'2018-07-31 21:57:59', u'state': u'ERROR', u'ready': False, 
u'percentage': 0.0, u'id': 1}))

+ RET=1

+ sleep 25

+ [[ 1 -eq 0 ]]

+ /bin/false

+ exit 1









3) master branch, build.sh, noha scenario, set VIRT_NUMBER to 5, deploy.sh



error:



Traceback (most recent call last):

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1136, in 

main()

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1131, in main

deploy()

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1085, in deploy

    ansible_print = client.get_ansible_print()

  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 977, in 
get_ansible_print

raise RuntimeError("OS installation timeout")

RuntimeError: OS installation timeout

+ RET=1

+ sleep 25

+ [[ 1 -eq 0 ]]

+ /bin/false

+ exit 1











From: huangxiangyu [mailto:huangxiang...@huawei.com]
Sent: Tuesday, July 31, 2018 2:05 AM
To: Gerard Damm (Product Engineering Service) 
mailto:gerard.d...@wipro.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: 答复: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 
server



** This mail has been sent from an external source **

Hi Gerard



This Error comes from the missing of variable VIRT_NUMBER.

Because in the script, you are using noha scenario 
(os-nosdn-nofeature-noha.yml<https://clicktime.symantec.com/a/1/_wUSDYYV1Nr8kM4w2nOFbc-gmeYqHsjbIzghOhft92Y=?d=sYLww7Yv_EL_j2sYh7yv-P9dVtgBMdanEb2dErQ_79Q5A8qxBCHAl-mDxJCjDlBRTLNlf8fwaXOVEHv6HIsbP-iF7nNnIeNNzqCmmadksojd9KCMeRZNfZsAPM_qndinKqrC_sYBQuf4FgqL_FN9wN0_GpebbiSfKZ4uz9xirsrc-ss6XKcGFPrvnfxilXzoUey15-deTh_0Wz_ysRnnK5_6wCpnBU-QSq8COS3L3SjpZWO_FNhSuObah5siS8OApZ8rsbGKSqmJ0NpY_nBT25KleYHLOfFJb_LgaBWBhtqBww7J6N0i-k0g2hAg7MoQTSfGoc5BewaTmAc8qw_uWMTKmGgtL6XprgqoMkBaMDN-LAtuahW9NJCXvTRQkEeG-i8bOK9ZTUwrdcpf511UXez_6OSrr8lAu1jzFOTqWE7nuhFSNN-pod5n5HDP483ZIA9LXHikRvCNGOz8MoYBT5oixuhBsoJp--eJBatn6ltq9HIvHmEKwKBy=https%3A%2F%2Fwiki.opnfv.org%2Fdisplay%2FAUTO%2Fos-nosdn-nofeature-noha.yml>)
 which contains only one controller and one compute.

Compass will expect five virtual

答复: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

2018-08-01 Thread harry huang
u'ERROR', u'ready': False, 
u'percentage': 0.0, u'id': 1}))
+ RET=1
+ sleep 25
+ [[ 1 -eq 0 ]]
+ /bin/false
+ exit 1




3) master branch, build.sh, noha scenario, set VIRT_NUMBER to 5, deploy.sh

error:

Traceback (most recent call last):
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1136, in 
main()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1131, in main
deploy()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1085, in deploy
ansible_print = client.get_ansible_print()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 977, in 
get_ansible_print
raise RuntimeError("OS installation timeout")
RuntimeError: OS installation timeout
+ RET=1
+ sleep 25
+ [[ 1 -eq 0 ]]
+ /bin/false
+ exit 1





From: huangxiangyu [mailto:huangxiang...@huawei.com]
Sent: Tuesday, July 31, 2018 2:05 AM
To: Gerard Damm (Product Engineering Service) 
mailto:gerard.d...@wipro.com>>; 
opnfv-tech-discuss@lists.opnfv.org<mailto:opnfv-tech-discuss@lists.opnfv.org>
Subject: 答复: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 
server


** This mail has been sent from an external source **
Hi Gerard

This Error comes from the missing of variable VIRT_NUMBER.
Because in the script, you are using noha scenario 
(os-nosdn-nofeature-noha.yml<https://clicktime.symantec.com/a/1/_wUSDYYV1Nr8kM4w2nOFbc-gmeYqHsjbIzghOhft92Y=?d=sYLww7Yv_EL_j2sYh7yv-P9dVtgBMdanEb2dErQ_79Q5A8qxBCHAl-mDxJCjDlBRTLNlf8fwaXOVEHv6HIsbP-iF7nNnIeNNzqCmmadksojd9KCMeRZNfZsAPM_qndinKqrC_sYBQuf4FgqL_FN9wN0_GpebbiSfKZ4uz9xirsrc-ss6XKcGFPrvnfxilXzoUey15-deTh_0Wz_ysRnnK5_6wCpnBU-QSq8COS3L3SjpZWO_FNhSuObah5siS8OApZ8rsbGKSqmJ0NpY_nBT25KleYHLOfFJb_LgaBWBhtqBww7J6N0i-k0g2hAg7MoQTSfGoc5BewaTmAc8qw_uWMTKmGgtL6XprgqoMkBaMDN-LAtuahW9NJCXvTRQkEeG-i8bOK9ZTUwrdcpf511UXez_6OSrr8lAu1jzFOTqWE7nuhFSNN-pod5n5HDP483ZIA9LXHikRvCNGOz8MoYBT5oixuhBsoJp--eJBatn6ltq9HIvHmEKwKBy=https%3A%2F%2Fwiki.opnfv.org%2Fdisplay%2FAUTO%2Fos-nosdn-nofeature-noha.yml>)
 which contains only one controller and one compute.
Compass will expect five virtual machines for virtual deploy and user need to 
export VIRT_NUMBER to specify the number if it’s not 5.

BTW, which doc do you follow when testing the compass installer? I will add 
this operation if there isn’t.

Regards
Harry
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com<http://www.wipro.com>

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

View/Reply Online (#21674): 
https://lists.opnfv.org/g/opnfv-tech-discuss/message/21674
Mute This Topic: https://lists.opnfv.org/mt/24003889/21656
Group Owner: opnfv-tech-discuss+ow...@lists.opnfv.org
Unsubscribe: https://lists.opnfv.org/g/opnfv-tech-discuss/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



答复: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

2018-07-31 Thread harry huang
Hi Gerard

This Error comes from the missing of variable VIRT_NUMBER.
Because in the script, you are using noha scenario 
(os-nosdn-nofeature-noha.yml)
 which contains only one controller and one compute.
Compass will expect five virtual machines for virtual deploy and user need to 
export VIRT_NUMBER to specify the number if it’s not 5.

BTW, which doc do you follow when testing the compass installer? I will add 
this operation if there isn’t.

Regards
Harry

发件人: opnfv-tech-discuss@lists.opnfv.org 
[mailto:opnfv-tech-discuss@lists.opnfv.org] 代表 Gerard Damm
发送时间: 2018年7月31日 7:20
收件人: opnfv-tech-discuss@lists.opnfv.org
抄送: huangxiangyu 
主题: Re: [opnfv-tech-discuss] [compass4nfv][auto] Compass4nfv on LaaS x86 server

Hi,

Thanks for that, but wouldn't that apply only to the option of downloading a 
tar ball ? If a user launches build.sh, shouldn't that build the correct 
package from the current branch (usually master, but any branch really) ? In 
that second case, I guess there shouldn't be a release/branch issue.

And I understood that it is preferable to use build.sh (among other things, to 
avoid such release/branch mismatch issues), so the preferred sequence would be: 
git clone compass4nfv repo, launch build.sh, edit and launch deploy.sh.

Anyway, I retried 2 examples (with fresh git clone each time):
1) stay in master branch, use build.sh
2) checkout to stable/fraser branch, download package 6.2

They both failed:

1) Still got that get_ansible_print error:
Traceback (most recent call last):
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1136, in 
main()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1131, in main
deploy()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1085, in deploy
ansible_print = client.get_ansible_print()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 977, in 
get_ansible_print
raise RuntimeError("OS installation timeout")
RuntimeError: OS installation timeout
+ RET=1
+ sleep 25
+ [[ 1 -eq 0 ]]
+ /bin/false
+ exit 1


2) sequence of key commands:

wget http://artifacts.opnfv.org/compass4nfv/fraser/opnfv-6.2.tar.gz
git clone https://gerrit.opnfv.org/gerrit/compass4nfv
cd compass4nfv/
git checkout stable/fraser
(or should it be to tag opnfv-6.2.0 ? "git checkout opnfv-6.2.0" ?)

root@linux-r4ap:/opt/opnfv-compass/compass4nfv# git branch
  master
* stable/fraser

edited deploy.sh as follows : (note: I picked "noha", not "ha")
export OS_VERSION=xenial
export TAR_URL=file:///opt/opnfv-compass/opnfv-6.2.tar.gz
export 
DHA=/opt/opnfv-compass/compass4nfv/deploy/conf/vm_environment/os-nosdn-nofeature-noha.yml
export 
NETWORK=/opt/opnfv-compass/compass4nfv/deploy/conf/vm_environment/network.yml

./deploy.sh

And still that get_ansible_print error (lines are different, I guess because 
it's a client.py file from a different branch):
Traceback (most recent call last):
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1127, in 
main()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1122, in main
deploy()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 1076, in deploy
ansible_print = client.get_ansible_print()
  File "/opt/opnfv-compass/compass4nfv/deploy/client.py", line 968, in 
get_ansible_print
raise RuntimeError("OS installation timeout")
RuntimeError: OS installation timeout
+ RET=1
+ sleep 25
+ [[ 1 -eq 0 ]]
+ /bin/false
+ exit 1


Has anyone else tried the procedure on a LaaS server ?

My current (updated today) notes are at :
https://wiki.opnfv.org/display/AUTO/Script%3A+Compass4nfv

Best regards,
Gerard



From: huangxiangyu [mailto:huangxiang...@huawei.com]
Sent: Friday, July 27, 2018 10:35 PM
To: Gerard Damm (Product Engineering Service) 
mailto:gerard.d...@wipro.com>>; 
opnfv-tech-discuss@lists.opnfv.org
Subject: ** Newsletter/Marketing email** 答复: [compass4nfv][auto] Compass4nfv on 
LaaS x86 server


** This mail has been sent from an external source **
Hi Gerard

I have logged into hpe32 and identified the issue: you are using compass4nfv 
master branch but opnfv-6.2.tar.gz is the package for fraser.
You can try to use this package