-
Notifications
You must be signed in to change notification settings - Fork 77
RAC-3801 ESXi 6.0 OS installation failure when network interface is s… #547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
data/templates/esx-ks
Outdated
| # | ||
| # Try to download call back script 60 times 1 second | ||
| # sleep in between to allow link to be up after DHCP | ||
| for retry in $(awk 'BEGIN { for ( i=0; i<60; i++ ) { print i; } }'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This iteration technique seems overly complex. How about:
for retry in $(seq 1 60); do
...
...
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, the question is if busy box supports the above iteration pattern. I will check...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just ran under busy box and the iteration form above worked fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Busy box v1.21.1
If you want to test run your sample commands:
turnqj1@lab03:~$ busybox sh
BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/emc/turnqj1 $
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I will try your suggestions
manfrednde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data/templates/esx-ks
Outdated
| # | ||
| # Try to download call back script 60 times 1 second | ||
| # sleep in between to allow link to be up after DHCP | ||
| for retry in $(awk 'BEGIN { for ( i=0; i<60; i++ ) { print i; } }'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I will try your suggestions
|
@manfrednde change logger to echo is better for me as well. Do you have ever tried if on-syslog is down, whether the Meanwhile, I'd suggest you use the |
|
Please review above change |
|
Could we catch the case where the retries were exhausted and report via user.err? Something like: if [ $retry -eq 60 ]; then |
|
Thanks Jim I will add that case but executing the kickstart file will not fail |
|
@jimturnquist |
data/templates/esx-ks
Outdated
| else | ||
| logger -p user.info "Failed to download RackHD's call back script after $retry attempt(s)." | ||
| sleep 1 | ||
| if [ $retry -eq 60 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to just check it once after the loop is finished instead of every iteration.
|
BUILD on-http #3009 : UNSTABLE
BUILD smoke-test #4067 Error Logs ▼Test Name: test_sel_overflow Error Details: 'SEL Record ID' -------------------- >> begin captured logging << -------------------- root: INFO: +186+186+186+186+186 root: INFO: -------STARTING TEST: proboscis.case.MethodTest (test_sel_overflow)-------- root: INFO: +186+186+186+186+186 --------------------- >> end captured logging << --------------------- Stack Trace: File "/usr/lib/python2.7/unittest/case.py", line 331, in run testMethod() File "/usr/lib/python2.7/unittest/case.py", line 1043, in runTest self._testFunc() File "/home/jenkins/workspace/on-http/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func compatability.capture_type_error(s_func) File "/home/jenkins/workspace/on-http/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error func() File "/home/jenkins/workspace/on-http/RackHD/test/.venv/on-build-config/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func func(test_case.state.get_state()) File "/home/jenkins/workspace/on-http/RackHD/test/tests/api/v2_0/sel_alert_poller_tests.py", line 162, in test_sel_overflow LOG.info(selInfoObj["SEL Record ID"][0]) "'SEL Record ID'\n-------------------- >> begin captured logging << --------------------\nroot: INFO: +186+186+186+186+186\nroot: INFO: -------STARTING TEST: proboscis.case.MethodTest (test_sel_overflow)--------\nroot: INFO: +186+186+186+186+186\n--------------------- >> end captured logging << ---------------------" |
|
test this please |
|
Can you please check the above changes and merge if all good ? Thank you |
brianparry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…et to dhcp
This code change is to solve the issue where the network interface is specified in the payload and it is set to dhcp. The payload may look like the following in this case:
{
"options": {
"defaults": {
"version": "6.0",
"repo": "http://172.31.128.1:9080/esxi/esxi6",
"networkDevices":[{"device": "vmnic2"}]
}
}
}
It looks like when the host try to download the call back script the link is not ready. So I included a retry option in the kickstart script.
@RackHD/corecommitters
@stuart-stanley
@derrickostertag
@johren