| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
| |
max was the name of mchristie's computer when iscsi-iname.c was written. And
when anaconda iscsi install was done I think Jeremy had copied that.
Then we fixed the naming in iscsi-iname, but anaconda never got fixed.
|
| | |
|
| |
|
|
|
|
| |
Removed the parted.getPartitionByName() function. There is now
a method on parted.Disk called getPartitionByPath() which provides
the same functionality, but only works on a single Disk.
|
| |
|
|
| |
Now provided by pyparted as parted.getPartitionByName()
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch replaces the iscsi.py code with new code using libiscsi, getting
rid of the awefull configfile mangling to set auth info hack, and in general
making it much cleaner.
Fixes:
-Report error when we cannot add a disk instead of silently failing (461830)
-Report error when trying to use iscsi from kickstart without having an
iscsiname directive first (463156)
-Better feedback while scanning iscsi disks
-Make ibft work with chap and 2-way chap
-Make ibft configured disks available for upgrades and in rescue mode
-Make ibft boot work even when iscsi-initiator-utils is installed after the
kernel in the transaction
Note:
libiscsi is available in Fedora now
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Currently the iscsi code checks for giving a password but not a username or
vica versa in both the interface and the iscsi code, this patch removes the
unneeded check from the interface code, this is a preparation patch for
fixing #463156, #461830
|
| |
|
|
|
|
|
|
| |
Further testing has revealed that it is possible that the hotplug events for
an added iscsi disk have not fired yet when iscsiadm ... --login has completed
In this case calling udevsettle does not help, so sleep a little before calling
udevsettle to give the kernel time to fire of those events.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
iscsi.startup contains:
for t in self.targets:
if not t.discover():
continue
t.login()
However all targets in the self.targets list are added through
iscsi.addTarget(), which does:
t = iscsiTarget(ipaddr, port, user, pw, user_in, pw_in)
if not t.discover():
return
if not t.login():
return
self.targets.append(t)
So we are already logged in to all the targets in self.targets, this relogin
attempts are harmless (other then making adding iscsi targets slower then
necessary), but do result in these messages on tty5:
iscsiadm: could not login to [.......]:
iscsiadm: initiator reported error (15 - already exists)
|
| |
|
|
|
|
|
|
|
|
|
| |
Januari 2008 _stopIscsiDaemon moved to using "iscsiadm -k 0" instead of using
"killall iscsid", but the old code (which also logs out of all targets which
the new code does not do) was kept as fallback, since "iscsiadm -k 0"
practically always works, and since the old fallback code behaves differently
(also logs out of all targets), remove the old code.
This patch also fixes the new code not setting iscsidStarted to False when
iscsid was successfully stopped.
|
| |
|
|
|
|
|
|
| |
iscsiadm .... --login will wait for the kernel to finish scanning the new
scsi "adapter", but after that udev still needs to create the devices under
/dev, sometimes anaconda is quicker in rescanning /dev for new disks then udev,
causing us to miss the newly added disk, this patch fixes this by calling
udevsettle after iscsiadm .... --login
|
| |
|
|
| |
Fix various syntax errors caught by PyChecker
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
What is happening here is that with / on iscsi we do not want to try and start
the node(s) corresponding to the raid / logvol / partition used to autostart
because they are already started and the node database may even contain wrong
info causing problems as described in bug 437891. However for /somedir on iscsi
we do want to set the node to autostart, as there the node will not have been
started from the initrd, so without starting it we won't have a connection to
the disk for /somedir.
Thus this commit sets node.startup to automatic for non / containing iscsi
nodes only.
|
| |
|
|
|
| |
Forward port from rhel-5 patch by pjones, commit id:
84c6d1f92ab2508158104b1c97f17b673b717bea
|
| |
|
|
|
|
|
|
| |
Make iBFT reading explicit from a higher level, so the target list doesn't get
obliterated in the anaconda.id.reset() path.
Forward port from rhel-5 patch by pjones, commit id:
0c566de27f4beb311baef2c49761924ced188da2
|
| |
|
|
|
| |
Forward port of rhel-5 patch from pjones, commit-id:
5a44a5a6bc90fdf056db1e9e2d4191703387c15f
|
| |
|
|
|
|
|
|
| |
Support iSCSI CHAP and Reverse CHAP authentication (rhbz#402431, rhbz#432819)
Don't set node.startup to automatic (rhbz#437891)
Forward port of rhel-5 patch from pjones, commit-id:
4960fffcddce97ffdd6d80f9b18f757c25d37ff5
|
| |
|
|
|
| |
Forward port of rhel-5 patch from pjones, commit-id:
2979c1195d9031b16d61ff14e3a6b0dcb3ee548f
|
| |
|
|
|
| |
Forwart port of rhel-5 patch by pjones, commit-id:
e9556f9e39629534b4b44ba64c7fef6b981b4f0e
|
| |
|
|
|
|
| |
Do not try to initialize iSCSI drive, when the portal cannot be detected
(#435173). Forward port of rhel-5 patch from msivak, commit-id:
c0beca8cfd3af9a38dee89fc2ffb83bb5b2b6e55
|
| |
|
|
|
| |
This is a forward port of a rhel-5 patch by pjones, commit-id:
6b4b816bb9305d740db2e5c499a73968e564a9b7
|
| |
|
|
|
| |
This is a forward port of a rhel-5 patch by clumens, commit id:
059c0ca2c34c123173041751b5c7337b0215242a
|
| |
|
|
|
| |
This is a forward port of rhel-5 patch:
0d7795b5d06b5449f0b2c0c6c5028ea99104d9ca
|
| |
|
|
|
| |
This is a forward port of a rhel-5 patch by pjones, commit id:
a4a4a5ecf8dca9fa121f5ad06dd7b949fc02b37b
|
| |
|
|
|
| |
This is a forwardport from a rhel-5 patch from pjones, commit id:
ad6c2adda67b1f1d77ad0d1db9a5c75e7e20cb3f
|
| |
|
|
|
|
| |
Make iscsi/ibft work; with this it at least detects the iBFT and
finds the disks. This is a forward port of a rhel-5 patch by pjones. commit id:
d410362972805fa50444f9bd4bbfd4c985ae0313
|
| |
|
|
|
|
| |
Add support for iSCSI iBFT table to anaconda and use the configured targets
in it (#307761), forward port of rhel-5 patch from Martin Sivak, commit id:
96255750791e859dd06004fe1fbcc101a26e9e47
|
| |
|
|
| |
* po/sk.po: Typo fix.
|
| |
|
|
|
|
| |
Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright
year ranges and listed authors (if they were in the comment section) under
the Red Hat Author(s) section.
|
| |
|
|
|
|
| |
* iscsi.py (iscsiTarget._getPortal): Fix args passed to
iscsiadm (Kostas Georgiou <k.georgiou AT imperial DOT ac DOT uk>,
#283791)
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
* iscsi.py (has_iscsi): Fix typo (#218513)
|
| | |
|
| |
|
|
|
|
|
|
| |
* iscsi.py (has_iscsi): Add a method so that we can find out if
iscsi is really available (#216128)
* iw/autopart_type.py (PartitionTypeWindow.addDrive): And don't
allow trying to add iscsi drives if we don't have iscsi stuff.
* textw/partition_text.py: Likewise.
|
| |
|
|
|
| |
list, and activate/login/logout of the entire list, not just the first one
we find.
|
| |
|
|
|
|
|
|
|
|
|
| |
* zfcp.py (ZFCPDevice.offlineDevice): Fix a few stupid bugs
(ZFCP.startup): Move config reading to here so that we don't have
problems with bringing up devs more than once (#210094)
(ZFCP.write): Better way of writing out zfcp.conf
(ZFCP.writeKS): Write out in anaconda-ks.cfg
* iscsi.py (writeKS): Support writing out iscsi bits to
anaconda-ks.cfg
|
| |
|
|
|
|
| |
* iscsi.py (iscsiTarget._getPortal): If the portal doesn't match
the ipaddr we discovered against, it's probably not what we wanted
(iscsi.write): Files moved.
|
| |
|
|
|
| |
* iscsi.py (iscsiTarget._getPortal): If the portal doesn't match
the ipaddr we discovered against, it's probably not what we wanted
|
| |
|
|
|
|
|
| |
* iscsi.py (iscsiTarget._getPortal): Handle another error
case (#208671)
2
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* textw/partition_text.py: Text mode support for iscsi and zfcp devices
* iw/autopart_type.py (PartitionTypeWindow.addIscsiDrive): Adjust
for new iscsi backend code.
* kickstart.py (AnacondaKSHandlers.doIscsi): Better iscsi syntax.
* iscsi.py: Improve support a bit so that we give a default
initiator name, have the framework for handling
usernames/passwords, and have cleaner code.
|
| | |
|
| |
|
|
| |
* iscsi.py: Update for new iscsi code
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* iw/autopart_type.py (PartitionTypeWindow.addIscsiDrive): Show
dialog while iscsid is starting
* yuminstall.py (YumBackend.selectFSPackages): Ensure that
iscsi-initiator-utils gets installed if installing on iscsi
* kickstart.py (AnacondaKSHandlers.doIscsi): Fixes for new iscsi
setup, startup iscsi targets at iscsi config
* iscsi.py: Sleep after starting iscsid, ensure we get the port
correct, redirect output from iscsid to avoid spinning, fix
writing out iscsi config
|
| | |
|
| |
|
|
|
| |
the command is no longer the first argument, since subprocess doesn't work
that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
|
| | |
|