Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
Merge 4.5 back into master#23
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
3cac7f0ac48aa8ffe8466f456cda4fd07998f4e8a4988b9ef9bbcef4b979c6fe0317eeb771b6ece2fe3e1b0618d4076d87f2eec475c2094eb4bddc6d036168555b20f3ebf49a7a4a0d789736d043a9bbfcd3df84a355213a420028fbb9e2bff42d5a4d8dfc96e04f93eb3773cb4a26405309aa3a329a9bd39c2903fd97ca059633d09420dd549840de43d5b142b604d20a0763f22b0cfd6970d4285cdaeecb66252116f7d354cb2183967c9d97ad9726ac4dd69d1b44f2b6aa4e338cdd9f653d726b501bee23be1e1d554c09cc238fa5c42cae0bf7d9278a63b29d075759b5fa54110ed4b581bf14ace9e47d2a5738e4be83540828dba4a8c160aa845990ed428f8c410b4c1a95f79fa3a9761a3ba186288ce829ac8c9f1d93b9ef8c90db150df431942fd2d97bea2f79605f570e2e1dfd058fa654a2bb0f583dcbf3196d635dab49cfb372aa516e5d9714ecb1916bd2372ad94eb447f1dfdf9ed70f74eedd335aadb79dd151d274bda73d733b65a590fd9c4327924d152c6c906e9d3b6c10189f1c1485e003269e50ee981a6d575b0db0e5e176e0d4e7fa3a226f3e8471c9804159a372ac820a342f628c080bc2ef488a8fe257c1353ee4cd80e0c995025071420d4e0148efbbFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -30,17 +30,16 @@ | ||
| import javax.ejb.Local; | ||
| import javax.inject.Inject; | ||
| import com.cloud.configuration.Config; | ||
| import org.apache.log4j.Logger; | ||
| import org.apache.cloudstack.api.AddBaremetalKickStartPxeCmd; | ||
| import org.apache.cloudstack.api.AddBaremetalPxeCmd; | ||
| import org.apache.cloudstack.api.ListBaremetalPxeServersCmd; | ||
| import org.apache.cloudstack.framework.config.dao.ConfigurationDao; | ||
| import org.apache.log4j.Logger; | ||
| import com.cloud.agent.api.Answer; | ||
| import com.cloud.agent.api.baremetal.IpmISetBootDevCommand; | ||
| import com.cloud.agent.api.baremetal.IpmISetBootDevCommand.BootDev; | ||
| import com.cloud.agent.api.baremetal.PrepareKickstartPxeServerCommand; | ||
| import com.cloud.baremetal.database.BaremetalPxeDao; | ||
| import com.cloud.baremetal.database.BaremetalPxeVO; | ||
| import com.cloud.baremetal.networkservice.BaremetalPxeManager.BaremetalPxeType; | ||
| @@ -224,11 +223,6 @@ private boolean preparePxeInAdvancedZone(VirtualMachineProfile profile, NicProfi | ||
| throw new CloudRuntimeException(String.format("cannot find management nic on virtual router[id:%s]", vr.getId())); | ||
| } | ||
| String internalServerIp = _configDao.getValue(Config.BaremetalInternalStorageServer.key()); | ||
| if (internalServerIp == null) { | ||
| throw new CloudRuntimeException(String.format("please specify 'baremetal.internal.storage.server.ip', which is the http server/nfs server storing kickstart files and ISO files, in global setting")); | ||
| } | ||
| List<String> tuple = parseKickstartUrl(profile); | ||
| String cmd = String.format("/opt/cloud/bin/prepare_pxe.sh %s %s %s %s %s %s", tuple.get(1), tuple.get(2), profile.getTemplate().getUuid(), | ||
| String.format("01-%s", nic.getMacAddress().replaceAll(":", "-")).toLowerCase(), tuple.get(0), nic.getMacAddress().toLowerCase()); | ||
| @@ -238,7 +232,7 @@ private boolean preparePxeInAdvancedZone(VirtualMachineProfile profile, NicProfi | ||
| throw new CloudRuntimeException(String.format("failed preparing PXE in virtual router[id:%s], because %s", vr.getId(), ret.second())); | ||
| } | ||
| //String internalServerIp = "10.223.110.231"; | ||
| String internalServerIp = "10.223.110.231"; | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoded internalServerIp? Is this dead code? | ||
| cmd = String.format("/opt/cloud/bin/baremetal_snat.sh %s %s %s", mgmtNic.getIp4Address(), internalServerIp, mgmtNic.getGateway()); | ||
| s_logger.debug(String.format("prepare SNAT on virtual router[ip:%s], cmd: %s", mgmtNic.getIp4Address(), cmd)); | ||
| ret = SshHelper.sshExecute(mgmtNic.getIp4Address(), 3922, "root", getSystemVMKeyFile(), null, cmd); | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
Not sure if we want this?