rhn: Remove values of password arguments

Previosuly passwords were removed from the logfiles by pure
substitution, in some cases this lead to problems.
The new approach looks for arguments and replace their values with a
placeholder - this is more secure.

rhbz#837228

Change-Id: Ib20f6d675d4f2f525c30620e0cc34124d1491992
Signed-off-by: Fabian Deutsch <fabiand@redhat.com>
unmount_logging kills o-c-autoinstall

rhbz#862351

Change-Id: Ibf72d9bf89f77b1127689110d39861dc510182c8
Signed-off-by: Joey Boggs <jboggs@redhat.com>
rhevh6-post.ks: remove patch to poller.py and update patch to rc.sysinit

poller.py: does not need the libvirt read-only patch as it is native in
rhn-virtualization-common.
rc.sysinit: Fixed failure of the restorecon hunk

Change-Id: I68ef13143438bcf58a98359d96f3bd26a0416037
Signed-off-by: Charles Rose <charles_rose@dell.com>
recipe: include centos kickstart files based on rhevh6

Updated centos6-pkgs and added the rest.

Change-Id: I3f98cb698bf987eed695e4d1ad890154dd29b516
Signed-off-by: Charles Rose <charles_rose@dell.com>
set sanlock selinux booleans

virt_use_sanlock=1
sanlock_use_nfs=1

rhbz#866196

Change-Id: Ic42c407f7b088fb5d6e61233cc37aa0967b4f99f
Signed-off-by: Mike Burns <mburns@redhat.com>
add partition size screen to TUI installer

After selecting the HostVG disks, there will be a new screen.
The screen will show the sizes for the UEFI and Root/RootBackup
partitions, but they will not be editable.  The Swap, Logging,
Config, and Data partition sizes will be editable.

The page is initially seeded with either:
1.  the values retrieved from /etc/default/ovirt
2.  the default values from storage.py (if #1 is not available)

Validation of disk space moved to after the partition screen.

Click Continue and you will move to the Password screen.
Click Back on Password will take you to the Partition Size screen

Validation:

values must be positive integers (except data where -1 is also
allowed).
Must meet minimum swap and config sizes.

rhbz#825735

Change-Id: I75583594bb9e8658137ef77976319e8a14020961
Signed-off-by: Mike Burns <mburns@redhat.com>
fix dracut ovirt_cleanup to remove bashisms

ovirt-cleanup runs in /bin/sh, not bash.  need to avoid [[ ]]
bashisms.

Change-Id: I87633580c9bce2726eb3296f91d2c4e2e946ea38
Signed-off-by: Mike Burns <mburns@redhat.com>
scripts: fix RHN activation key based registrations

Correct initialization of parameters that may be missing from command line
namely OVIRT_RHN_USERNAME and OVIRT_RHN_PASSWORD.

rhbz#865237

Change-Id: Ib86694bdc904edacd1a91ad5b3546ed26953410d
Signed-off-by: Nigel Jones <nigjones@redhat.com>
fix list assignment in rhn code

in python, when variable "a" is a list, and you assign

b=a

you get 2 variables pointing to the same list.  So any
operation you do on a, get done on b and vice versa.
Instead of this, do b=list(a) to get a new list with the
same content.

Change-Id: I3ac8365d605dd664b74243bd76889b1c9e41e608
Signed-off-by: Mike Burns <mburns@redhat.com>
setup: remove recursive flag from wget for rhn sat cert

rhbz#865687

Change-Id: I3401088e5ed76586f87c99d5d12dd18b4869e2d3
Signed-off-by: Joey Boggs <jboggs@redhat.com>
add option to specify org when registering to SAM

ONLY SUPPORTED IN auto-install
add rhn_org kernel commandline option
during auto-install, parse and add this option to
subscritption-manager command line in the --org option

rhbz#866274

Change-Id: I7d45a5b3697174fd9e23baa5a8b93c3f948496d4
Signed-off-by: Mike Burns <mburns@redhat.com>
resync rhn profile in cases where reregistering fails to show virt guests

rhbz#864352

Signed-off-by: Joey Boggs <jboggs@redhat.com>
Change-Id: Ie975870e982ed0784f4eae9fd20bd0a496b33e39
installer: Finish iscsiroot installation code

rhbz#520111

To install you need to specify at minimum these options:
BOOTIF=eth0
storage_init=/dev/sda
iscsi_init=/dev/sdc
iscsi_target_name=iqn.shared.root
iscsi_install
iscsi_server=192.168.1.5:3260

!!Boot disk must be locally attached!!
Root installed to /dev/sdc as $iscsi_init
Boot and HostVG installed to local /dev/sda

Change-Id: Iafd5c5e02c76644886bf06ce98c5328e1e87a865
Signed-off-by: Joey Boggs <jboggs@redhat.com>
setup:  add nfsv4 domain option to remote storage page

rhbz#855734

Change-Id: Id1f3b565be2ebff1516cd236a404b995872b5363
Signed-off-by: Joey Boggs <jboggs@redhat.com>
don't do anything with productid.js

It's not necessary to persist it and doesn't exist on the system

rhbz#866283

Change-Id: I31cabf265afcec66a603fd69a8a21899f8909fc3
Signed-off-by: Mike Burns <mburns@redhat.com>
functions: Fix indenting

Previously one indent level was missing, this way only the last filename
was considered and persisted.
Now the indent level is corrected and all files should get persisted.

rhbz#866300

Change-Id: Id822a83125d4c0d8662d86c71b240cbd3554b205
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
functions: Followup cleanups

The previous patch didn't incorporate some changes regarding the return
value. This patch tries to carry all the return values frmo all files
until the end.

rhbz#866300

Change-Id: Iedc53f7dc338e35b8c239e81842d564e29bb4b25
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
functions: Silence ovirt_store_config

The logic needed to be changed a bit.

rhbz#866299

Change-Id: I67484f5a522286027c105e4e7cdc62fce34e7130
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
revert bad merge in install.py for iscsiroot

Change-Id: If18e2a7c874ebe4fced41b02702a6af8f442e84b
Signed-off-by: Joey Boggs <jboggs@redhat.com>
keep sch_ingress.ko kernel mod for port mirroring

rhbz#867387

Change-Id: Ieba9308606b14471198bae90265086dc0a480740
Signed-off-by: Mike Burns <mburns@redhat.com>