Skip to content

Conversation

@lanchongyizu
Copy link
Member

The solution is

  • wget callbackScript into directory /tmp in %pre
  • then move it to /vmfs/volumes/datastore1 in %post
  • then copy the content into /etc/rc.local.d/local.sh

@RackHD/corecommitters @panpan0000 @keedya

@rackhdmirror
Copy link

@RackHD/corecommitters please review.

@keedya
Copy link

keedya commented Oct 18, 2016

@lanchongyizu I m not sure ssh validation will pass in this case. I probably missed something here?

@yyscamper
Copy link
Contributor

@lanchongyizu : could you please explain why this can solve the static IP issue?

@lanchongyizu
Copy link
Member Author

@keedya For now, ssh validation fails for all OSes, so it is not caused by this PR.
@yyscamper Because callbackScript is wget in %pre where static IP is not set then.

@panpan0000
Copy link
Contributor

:+0: :-) looks good. just questions: (1) so in %pre, the "/vmfs/volumes/datastore1" has not been established or is not accessible ? (2) can you help: why wget works in %pre but not in %firstboot ?

@lanchongyizu
Copy link
Member Author

@panpan0000
(1) yes, it's not established
(2) wget in %firstboot will fail since setting static IP makes lookups fail when pulling callbackScript.

@keedya
Copy link

keedya commented Oct 19, 2016

@lanchongyizu I tested it on my end and found that the lookup table is getting updated.
I guess we can retire postlookup functionality in the script. Do you still think you need to download the file in preboot?

👍

@yyscamper
Copy link
Contributor

My comment purely depends on the test result. I eagerly to remove the "ugly" code to POST lookup in ESXi kickstart file, if the testing is OK, this is definitely 👍

@lanchongyizu
Copy link
Member Author

Since the issue https://github.com/RackHD/RackHD/issues/467 exists, we can't remove postLookups() currently.

@lanchongyizu
Copy link
Member Author

This has been solved by #531, so close the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants