2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-08 11:18:31 +00:00
Commit Graph

8807 Commits

Author SHA1 Message Date
Jarrod Johnson
8b79cf8535 Do not add any link local address to networks table 2018-03-05 14:00:25 -05:00
Jarrod Johnson
0e070cd2fd Fix infinite loop if unfortunate IPv6 encountered 2018-03-05 13:47:49 -05:00
Jarrod Johnson
08c29357bf Update getinstdisk to better handle M.2/ahci devices 2018-03-02 15:42:15 -05:00
Jarrod Johnson
e372fb5b73 Add a message to genimage about bus messages
The service handling in systemd causes it to show scary
looking messages to user.  This reassures that the message
is benign.
2018-02-26 15:01:20 -05:00
Jarrod Johnson
202004aaaa Merge branch 'nodestatUsage2' of https://github.com/aduffy19/xcat-core into lenovobuild2.13 2018-02-26 10:41:02 -05:00
Jarrod Johnson
6872a25c56 Revert "Add -f option to nodestat usage"
This reverts commit 322e77d184.
2018-02-26 10:39:40 -05:00
Jarrod Johnson
57f6ddd38b Actually change confluent detection in replaycons 2018-02-26 10:36:06 -05:00
Amanda Duffy
802af8150e Add -f to nodestat usage 2018-02-26 10:24:30 -05:00
Jarrod Johnson
3e8edef7dc Recognize <xcatmaster> in dhcp
The recent change failed to treat <xcatmaster>
special.
2018-02-23 16:00:58 -05:00
Jarrod Johnson
d159db0e7f Merge branch 'nodestatUsage' of https://github.com/aduffy19/xcat-core into lenovobuild2.13 2018-02-23 15:53:27 -05:00
Amanda Duffy
322e77d184 Add -f option to nodestat usage 2018-02-23 15:41:47 -05:00
Jarrod Johnson
d688749367 Actually check the site table value
It may be the case someone tried and discontinued use of
confluent.  Check the current site table value to confirm
the choice.
2018-02-23 11:52:12 -05:00
Jarrod Johnson
42bca25e1f Fix the mlx driver name
It is mlx4_en, not mlx_en
2018-02-22 15:53:08 -05:00
Jarrod Johnson
1c1b23fac5 Replace terse message with usage
replaycons had too terse an error when called without arguments
2018-02-22 15:01:52 -05:00
Jarrod Johnson
c4c5fc6216 Allow restricting service node pools
Service node pools would go as far as the network allowed.
Honor the servicenode attribute to limit visibility to
the service nodes that are relevant and any owner of a dynamic
range.

Also allow execution if the dhcp server is not running (e.g. shutting
down dhcp server on the master node to allow only the service nodes
to provide services).
2018-02-22 11:08:04 -05:00
Jarrod Johnson
a98cb37ced Give priority to likely boot volumes when mixed with raid controller
A common configuration is an ahci attached boot device.  Prefer
ahci over megaraid as a result.
2018-02-02 14:12:33 -05:00
Jarrod Johnson
ce311f0ab6 Add boot nvme support and filter small devices
nvme devices were not autosensed as install candidates.

Also, devices smaller than 128 MB are filtered out, as they are likely
to be some media or similar.
2018-02-01 13:52:15 -05:00
Jarrod Johnson
f0c881820d Provide error message should fping be missing 2018-01-29 16:12:50 -05:00
Jarrod Johnson
3ce4d81b36 Improve robustness of confluent check
Use the existence of the presumed log as a stronger indication
of the use of confluent.  Continue to shy away from slowing
things down by getting the site table, to avoid the slow check.
2018-01-22 14:30:09 -05:00
Jarrod Johnson
2b3f8e424f Restore classic nodeset arguments
People are opting into the classic arguments, continue helping them so
long as it works.
2018-01-22 10:39:41 -05:00
Jarrod Johnson
09fecc11b5 Fix merge mistake on anaconda.pm 2017-12-09 09:02:33 -05:00
Jarrod Johnson
804ce47c0c Allow disabling nodesetwarning... again 2017-12-09 08:58:22 -05:00
Miro
ae82fb8290 Fix merging in xdcpmerge.sh (#4328)
* Fixes in xdcpmerge.sh

Two fixes:
1. The grep pattern when finding duplicate usernames is missing ":" at the end. So, for example user "test" would also match "test2, etc.". Adding the ":" delimiter fixes the issue.
2. Another issue happens when the file to be merged is a superset of the files on the nodes. For example, if a new user is added and entire passwd file (that is otherwise identical) is sent to be merged. In this case, the $filebackup.nodups file, i.e. the original file with duplicates removed, becomes empty and the condition "if [ -s "$filebackup.nodups" ]" does not execute. Then the merged file ends up being original file with the merge file fully appended, clearly not what was intended.

This is solved by changing the condition to check for file existence "-a" rather then for size. Additionally, I also turn the logic around so that the duplicates are removed from the merge file and then added to the original file. I think this makes logic a bit cleaner and also ensures that existing entries are not reordered or changed in any way.

* Streamlining previous commit

Adjustment to previous commit, streamlining and simplifying logic. Once $mergefile.nodups is created, just concatenate it the original file.

* Update to xdcpmerge

No need to copy $filebackup to $curfile, they are the same.
2017-11-28 14:02:02 -05:00
Jarrod Johnson
6c2459731b Merge tag '2.13.8' into lenovobuild2.13
xCAT 2.13.8  release
2017-11-28 14:01:03 -05:00
Jarrod Johnson
0f45f2e517 Fix makeconfluentcfg without arguments
There were mistakes in the switch table processing attempt
for non noderange makeconfluentcfg.
2017-11-09 09:27:53 -05:00
Jarrod Johnson
9de9193d0c Skip connection to BMC on rpower reseat
rpower reseat gets directed at the chassis manager.  Skip the
superfluous connection to the BMC and keep it from interfering
with the reseat.
2017-11-07 15:17:00 -05:00
Jarrod Johnson
f01ab1a961 Copy in hidden files to mknb
mknb was ignoring hidden files (e.g. .screenrc), fix this.
2017-11-07 11:51:26 -05:00
zet809
c3c394d9eb Merge pull request #4174 from robin2008/stateless-sn-doc
Stateless service node RTD update
2017-11-02 15:00:53 +08:00
Casandra Qiu
469babefab bmcdiscover blathering garbage on non OpenBMC nodes 2017-11-01 13:03:20 -04:00
XuWei
6a050f5974 Fix issue 4192, fork to login before send real login request 2017-10-31 05:31:56 -04:00
zet809
a69504b1bf Merge pull request #4168 from whowutwut/debug_rflash_openbmc
[OpenBMC] rflash -l, Reset the update_priority on each loop, or it will pick up the priority from the previous
2017-10-30 19:47:46 +08:00
Victor Hu
a115e3b7a3 Change update_priority to local variable since it's only used inside the loop 2017-10-27 14:29:16 -04:00
zet809
ce1c0859e1 Merge pull request #4147 from chuckbrazie/master_ChuckB_updatesSinceApril
Chuck Brazie updates since April, plus add back in xcatws.cgi from 2.13
2017-10-27 17:59:08 +08:00
zet809
151144f6bf Merge pull request #4151 from chenglch/rflash
Fix the spelling error for the openbmc rflash message
2017-10-27 17:53:39 +08:00
zet809
70a1c5b71e Merge pull request #4170 from whowutwut/bmc_reboot
[OpenBMC] Hide the 504 timeout when doing a reboot of BMC since the REST service may be down
2017-10-27 17:42:00 +08:00
Bin Xu
9abe96809b Fix 3026, ignore the rsetboot for openbmc box in petitboot during the stateful installation (#4193) 2017-10-27 04:10:47 -05:00
zet809
7e7ba8b252 Merge pull request #4153 from xuweibj/reset_boot
rpower reset and boot for OpenBMC support
2017-10-27 15:41:05 +08:00
chenglch
1aca1aa60b Merge pull request #4191 from whowutwut/4053_multiple_args
Improve the parsing for rflash and detect error arguments in parsing
2017-10-26 21:35:09 -05:00
Victor Hu
d947e6b899 Improve the parsing for rflash and detect issues early on 2017-10-26 16:39:46 -04:00
Victor Hu
22b7660b93 Add timestamp into the debug message in order to help trace the time
being spent in certain areas against the BMC.  Re-ordered the debug
logging to print BEFORE we issue the command in order to capture the correct
timestamp
2017-10-26 11:08:11 -04:00
Victor Hu
08c4fc67ce Remove the indication of 504 and check that bmcreboot was the command called 2017-10-26 09:53:38 -04:00
Victor Hu
dbb9cca156 Inform the user of the workaround when running rsetboot 2017-10-25 11:57:17 -04:00
hu-weihua
784250e0bd add getopenbmccons to commands.log 's filter list 2017-10-25 02:19:50 -04:00
XuWei
a97149756b modified depending on comments 2017-10-25 01:46:55 -04:00
chenglch
c4da6435a6 Merge pull request #4171 from jjohnson42/sortnodels
Sort nodels attribute names
2017-10-24 21:16:53 -05:00
chenglch
4209f09c60 Fix the spelling error for the openbmc rflash message
Fix the spelling error
2017-10-25 09:19:02 +08:00
cxhong
71258305bf Merge pull request #4149 from whowutwut/flash_output
[OpenBMC] Improve the error for rflash activate/delete to return something more meaningful to the user
2017-10-24 17:09:29 -04:00
Jarrod Johnson
358ea0584f Sort nodels attribute names
The ordering of attribute names out of nodels
is inconsistent.  Use sort to provide consistent
output
2017-10-24 16:21:11 -04:00
Jarrod Johnson
7b9e4ebd39 Sort nodels attribute names
The ordering of attribute names out of nodels
is inconsistent.  Use sort to provide consistent
output
2017-10-24 16:19:26 -04:00
Victor Hu
89594ba192 Hide the 504 timeout when doing a reboot of BMC since the REST service may already have gone down 2017-10-24 13:06:37 -04:00