kdump: copy kernel from /boot for iscsi installs.

rhbz#885960
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=885960
Signed-off-by: Joey Boggs <jboggs@redhat.com>
Signed-off-by: hadong <hadong0720@gmail.com>
Change-Id: I60c9b832e10e6e4ae0ba1a7a4e370f95525553e7
Show version in login prompt

Change-Id: I4f81c6470018441d8a63f638410c05d751eb33f5
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1027428
Signed-off-by: Fabian Deutsch <fabiand@redhat.com>
enhance edit-node man page for uid/gid options help info a bit more

Change-Id: Ia602ad45db47f382b7977577242e5c6e21cc3a76
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1032376
Signed-off-by: hadong <hadong@redhat.com>
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
edit-node: Support specify multiple users uid/gid elements changed

Previously edit-node tools only support individual user uid/gid elements
changed.
Now multiple users can be specified by colon delimited list.(--uidmod=USER1,
UID1:USER2,UID2 or --gidmod=USERGROUP1,GID1:USERGROUP2,GID2)

Change-Id: I1cf2caa4dcc3af07eaa4b20b29e01fe2750b1806
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1032375
Signed-off-by: hadong <hadong@redhat.com>
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Clear KDump related fields if not relevant to the selected type

Previously, configuration details for kdump types which did not
match the selected one (SSH location when NFS was chosen, for
example) were shown. Hide types that aren't relevant.

Change-Id: Ibc1b77efbed69d3af463e09641a908efec82d6a3
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=989391
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Show a confirmation dialog if the network is already configured

With the move to the new TUI, we lost the confirmation dialog when
entering network configuration with an interface already
configured. Add it back.

Change-Id: I2c41fa8f299d2670aa9d0d60646a49c00e25ec6d
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=981188
Signed-off-by: Ryan Barry <rbarry@redhat.com>
network_page:fix always prompt "no changes, nothing to do." issue

Change-Id: Ib0a97d1d399c72258e85f47c7b9f636aa2a7ff60
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1003231
Signed-off-by: hadong <hadong0720@gmail.com>
[SNMP] - Require net-snmp-utils

Previously, we only required net-snmp, but net-snmp-utils provides
snmpusm, which is used to change authentication. Require it.

Change-Id: I3d72b92832dbc8f352bbb55db6ca52a7eaaa4056
Signed-off-by: Ryan Barry <rbarry@redhat.com>
[SNMP] Make the SNMP plugin work on newer distros

Create users in /var/lib/net-snmp instead of /etc/snmp so it gets
correclty processed.

Change-Id: I1aac2dd19d3d86be610faea5c71c9d94ce2e63b0
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1021559
Signed-off-by: Ryan Barry <rbarry@redhat.com>
edit-node: need get the basename of install plugin pkg

Change-Id: I6725fdaacc65eb0e2bd0f50e80cbc6aab81731f4
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1026635
Signed-off-by: hadong <hadong0720@gmail.com>
Add if statement to avoid duplicate elements in "funcs" list

Change-Id: I1c1aabe95c4cae1b88fbca3dad62c19d61d19335
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1023700
Signed-off-by: hadong <hadong0720@gmail.com>
Basic sanity checking for user input to edit-node

Previously, edit-node didn't verify whether input was actually
RPMs or appeared to be yum repositories. Add these checks.

Change-Id: I05995fa62038db92b43939d087dcb9dcdcce5175
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=993525
Signed-off-by: Ryan Barry <rbarry@redhat.com>
update dracut module patches in ovirt-node %post

rhbz#1031975

Change-Id: I0a41ec3179166b4d4653b68346acba40ca8acc6e
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
installer Fix multipath device detection

Previously the installation could fail in specififc multipath setups.
This is now fixed by a better multipath -l output parsing.

Change-Id: I079f565aa88fe2f9bb54addb5db774240e08b733
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Disable multipath for install, but leave it otherwise

Previously, using multipath-capable devices for the install
sometimes paniced without being able to find root. With the
addition of an option to dracut to disable it, we now remove
multipath support during the install phase, but leave it in the
bootloader arguments for normal booting

Change-Id: Ie5a3fa380c6561669dab843e14ae320d5fb4f3a2
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=856877
Signed-off-by: Ryan Barry <rbarry@redhat.com>
process: Add a masking log

Previously there was no way to mask out parts of a command which was
run. This could lead to situations where sensitive informations like
passwords/usernames/addresses/etc. were exposed. To prevent this
situation now a context manager is available to hide sensitive
informations in command calls.

Example:

>>> import process
>>> pw = "secret"
>>> with masked([pw]):
...     process.call(["app", "--user", "foo", "--password", pw])

In that example only
["app", "--user", "foo", "--password", "<masked>"]
will get logged.

Change-Id: I013e79b006c24e475f8f021c76a5156520145bfd
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Clean up kdump page

Hide the implementation details of the kdump model in the model
itself, so we don't need to worry about passing the correct
number of arguments every time they change, and we can use have a
more logical flow in the view itself.

Change-Id: I2b1fe1c2303aa022e0064e431f930d5fc9226bec
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=991375
Signed-off-by: Ryan Barry <rbarry@redhat.com>
Make sure plugin autoinstall files stay in their packages

Tweak the specfile a bit to make sure new plugins with autoinstall
directives don't leak files back into ovirt-node.

Change-Id: I036b8b37dd63b1b6126cfe2af72f2ef3f6a3afc8
Signed-off-by: Ryan Barry <rbarry@redhat.com>
support flash lights to identify which nics belong to bond

Change-Id: I5fa299cb84e2bcd3a873b9df88baee9f9d5cf7e1
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1007311
Signed-off-by: hadong <hadong0720@gmail.com>
Validate "Other Device" against live device

Previously, we didn't check whether or not "Other Device" input
matched against a known live device or not (USB boot, etc). Do so.
As part of this, slight rearrangement of storage.Device to improve
responsiveness when looking for udev devices (we're assuming udev
will not change during the install), and get the new validation
workflow to properly invalid pages if a plugin's on_change throws
an exception.

Change-Id: I44b87876876965418765cbb6a0c0030bf143f156
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=885017
Signed-off-by: Ryan Barry <rbarry@redhat.com>