Bug 676114 - iscsi --target kickstart option not actually used
Summary: iscsi --target kickstart option not actually used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F15Blocker, F15FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2011-02-08 20:49 UTC by cruejones
Modified: 2014-09-30 23:39 UTC (History)
6 users (show)

Fixed In Version: anaconda-15.23-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 676118 (view as bug list)
Environment:
Last Closed: 2011-04-17 23:37:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description cruejones 2011-02-08 20:49:48 UTC
Description of problem:

kickstart iscsi root install does not use --target option even if specified.  will use any target that may be available at --ipaddr.

iscsi --ipaddr <ip> --target <iqn>

also, when doing a manual install and selecting a specific target it will work but will not correctly report in /root/anaconda-ks.cfg.  only reports:

isci --ipaddr <ip>

no --target, even though the manual installer works.

Version-Release number of selected component (if applicable):
Fedora 14

How reproducible:
always

Steps to Reproduce:
1. setup an iscsi target server with more than one target exported
2. use "iscsi --ipaddr <ip> --target <target>" in kickstart file
3. install will work but not use actual target specified (unless your lucky) 
4. 
  
Actual results:
specified target not used

Expected results:
specified target used

Additional info:
--target= shouldn't be ignored in ks.cfg and that writeKS should include it.

Comment 2 Ales Kozumplik 2011-03-09 12:04:32 UTC
Proposing this as a blocker, user might end up installing on a different iscsi drive then intended.

Comment 3 Ales Kozumplik 2011-03-09 12:52:23 UTC
Patch awaiting review:

https://www.redhat.com/archives/anaconda-devel-list/2011-March/msg00143.html

Comment 4 Ales Kozumplik 2011-03-11 09:44:55 UTC
Reporter,

can you please test with updates=http://akozumpl.fedorapeople.org/bz676114.img and let me know if your issues are resolved?

Thank you.

Comment 5 Adam Williamson 2011-03-11 17:29:04 UTC
Discussed at 2011-03-11 blocker review meeting. Agreed that this is a final release blocker under criterion "The installer must be able to complete an installation using IDE, SATA, SCSI and iSCSI storage devices".

Comment 6 Ales Kozumplik 2011-03-14 08:38:27 UTC
Fixed by
6733e0859e412a2693bddfc7dd718706a86474f0 f15,
43dbc98d1ad9d15e3f077bab34ff08039d2660db on master.

Comment 7 cruejones 2011-03-16 16:21:49 UTC
will test today/tomorrow and let you know - thanks.

Comment 8 das_deniz 2011-04-01 21:41:39 UTC
sorry, i've added the update=http://<img> line to my kickstart for F14 and, despite the fact that it's documented as a valid option i get this back:

The following error was found while parsing the kickstart configuration file:
...
Unknown command: updates=http://akozumpl.fedorapeople.org/bz676114.img

Can you help me, a gumby, with explicit instructions on how to integrate this to test (or a helpful URL that breaks this down). Thank you.

Comment 9 Ales Kozumplik 2011-04-04 06:22:04 UTC
(In reply to comment #8)
> sorry, i've added the update=http://<img> line to my kickstart for F14 and,
> despite the fact that it's documented as a valid option i get this back:
> 
> The following error was found while parsing the kickstart configuration file:
> ...
> Unknown command: updates=http://akozumpl.fedorapeople.org/bz676114.img

Hi,

yes, you need append the updates=... to the kernel boot command line, not to the kickstart. Sorry, I should have mentioned that.

More documentation about the updates feature is here: http://fedoraproject.org/wiki/Anaconda/Updates

Comment 10 das_deniz 2011-04-04 13:22:41 UTC
so included with the kernel args i see the update file get loaded but almost immediately following there is a python backtrace.  Reproduced the backtrace with both fedora-14 and rhel-6.0 x86_64

typed the trace is something like:

File "/tmp/updates/anaconda", line 480, in <module>
  (opts, args) = parseOptions()
File "/tmp/updates/anaconda", line 169, in parseOptions
  from pyanaconda import _isys
File "/tmp/updates/pyanaconda/__init__.py" in line 32, in <module>
  import iutil
File "tmp/updates/pyanaconda/iutil.py" line 30, in <module>
  from flags import flags
File "tmp/updates/pyanaconda/constants.py" line 59 in <module>
  import product
File "/tmp/updates/pyanaconda/product.pm", line 35, in <module>
  config.read(["/tmp/product/.buildstamp", "/.buildstamp", os.environ.get("PRODBUILDPATH", "")])
File "/tmp/lib64/python2.6/ConfigParser.py", lne 286 in read
  self._read(fp, filename)
File "/usr/lib64/python2.6/ConfigParser.py", line 486, in _read
  raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError:  File contains no section headers.
file: /.buildstamp, line: 1
'201009221801.x86_64\n'
install exited abnormally [1/1]

Comment 11 Ales Kozumplik 2011-04-04 14:21:50 UTC
(In reply to comment #10)
> so included with the kernel args i see the update file get loaded but almost
> immediately following there is a python backtrace.  Reproduced the backtrace
> with both fedora-14 and rhel-6.0 x86_64

You need to test against a fedora 15. Also the recent F15 anaconda builds already have this patch applied so you shouldn't even need the updates image. Specifically you want a f15 image with at least anaconda-15.23-1.

Comment 12 das_deniz 2011-04-04 18:46:51 UTC
ok - excellent Fedora-15-Alpha pulled today does not have the fix... but with the updates=http://<img> it installs to the specified --target and doesn't whack the other targets on the iscsi server when performing the "clearpart --all --initlabel"

good fix. thank you for your help.

Comment 13 James Laska 2011-04-15 17:08:25 UTC
(In reply to comment #12)
> ok - excellent Fedora-15-Alpha pulled today does not have the fix... but with
> the updates=http://<img> it installs to the specified --target and doesn't
> whack the other targets on the iscsi server when performing the "clearpart
> --all --initlabel"
> 
> good fix. thank you for your help.

as_deniz, this should be fixed in Fedora 15 Beta, can you confirm whether the problem has been resolved?

http://serverbeach1.fedoraproject.org/pub/alt/stage/15-Beta.RC2/

Comment 14 das_deniz 2011-04-15 17:13:49 UTC
indeed it has been (checked with beta rc2 last week) - no longer requires the updates= with the kernel args - and completes iscsi --target install -  tx for fix and the followup

Comment 15 Adam Williamson 2011-04-17 23:37:22 UTC
thanks for testing.


Note You need to log in before you can comment on or make changes to this bug.