FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 10-31-2008, 09:51 AM
 
Default Réf. : using virtinstall--devel and bus type option.

-----et-mgmt-tools-bounces@redhat.com a écrit : -----

>Pour*:*et-mgmt-tools@redhat.com
>De*:*FCOMBERNOUS@ares.fr
>Envoyé*par*:*et-mgmt-tools-bounces@redhat.com
>Date*:*31/10/2008*11:12
>Objet*:*[et-mgmt-tools]*using*virtinstall--devel*and*bus*type*option.

[...]
>
>However, when i read the source code of virt-install, if i compare
>with diff*[1],*it*looks*to*do*the*job*as*wished*(new*syntax).*I 'm*lost.

Forgotten the link :
[1]
http://www.nabble.com/-PATCH--virt-install:-allow-to-pass-bustype-via---disk-td20030562.html



--
Fabien COMBERNOUS
IT Engineer, Open source specialist
http://www.ares.fr


************************************************** **************************************************
Ce message ou ses pièces jointes peuvent contenir des informations confidentielles à l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez reçu ce message par erreur, merci de le notifier à son expéditeur et d'en détruire toute copie. Le présent message pouvant être altéré à notre insu, le groupe ARES ne peut pas être engagé par son contenu. www.ares.fr
************************************************** **************************************************


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 11-03-2008, 08:56 AM
 
Default Réf. : using virtinstall--devel and bus type option.

-----Cole Robinson <crobinso@redhat.com> a écrit : -----

>Pour*:*Fedora/Linux*Management*Tools*<et-mgmt-tools@redhat.com>
>De*:*Cole*Robinson*<crobinso@redhat.com>
>Date*:*31/10/2008*14:36
>cc*:*fcombernous@ares.fr
>Objet : Re: [et-mgmt-tools] using virtinstall--devel and bus type
>option.
>
>FCOMBERNOUS@ares.fr*wrote:
>>*Lo,
>>
>>*As*indicated*i*get*the*source*with*mercurial* :
>>*hg*clone*http://hg.et.redhat.com/virt/applications/virtinst--devel
>
>When*did*you*clone*the*repo?*Just*yesterday*I*com mitted*a
>few*more*patches*from*Guido*that*fixed*up*some*of *the*code

My clone and your commit are near. Perhaps i cloned before your commit.

>to*do*with*the*'bus'*option,*so*you*may*be*runnin g*in*to
>issues*that*have*been*fixed.*Try:
>
>cd*virtinst--devel
>hg*pull
>hg*update
>python*setup.py*install
>
>Then*see*if*the*bus*option*isn't*working.*If*not, *report
>back*here.

Here the report
- The man pages use the new syntax about the -disk option.
- The virt-install --help is broken. Have a look to details below [1].
- The -disk option looks to do the job.

In fact, i wanted to use -disk option as described in [2]. With this one,
it's possible to set the devide type to scsi and not only to ide. But with
the last update, the virt-install don't know the scsi value :
ERROR Error with storage parameters: Unknown device type 'scsi'


[1]
# virt-install --help
ERROR:root:'ascii' codec can't decode byte 0xc3 in position 171: ordinal
not in range(128)
Traceback (most recent call last):
File "/usr/bin/virt-install", line 715, in <module>
main()
File "/usr/bin/virt-install", line 504, in main
options = parse_args()
File "/usr/bin/virt-install", line 466, in parse_args
(options,args) = parser.parse_args()
File "/usr/lib/python2.5/optparse.py", line 1385, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.5/optparse.py", line 1425, in _process_args
self._process_long_opt(rargs, values),
File "/usr/lib/python2.5/optparse.py", line 1500, in _process_long_opt
option.process(opt, value, values, self)
File "/usr/lib/python2.5/optparse.py", line 782, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python2.5/optparse.py", line 804, in take_action
parser.print_help()
File "/usr/lib/python2.5/site-packages/virtinst/cli.py", line 51, in
print_help
file.write(self.format_help().encode(encoding, "replace"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 171:
ordinal not in range(128)


[2]
http://hg.et.redhat.com/virt/applications/virtinst--devel?fd=710611367b50;file=man/en/virt-install.pod


--
Fabien COMBERNOUS
IT Engineer, Open source specialist
http://www.ares.fr

************************************************** **************************************************
Ce message ou ses pièces jointes peuvent contenir des informations confidentielles à l'intention exclusive de son destinataire et est couvert par le secret professionnel. Toute utilisation, divulgation ou reproduction de son contenu sont strictement interdits. Si vous avez reçu ce message par erreur, merci de le notifier à son expéditeur et d'en détruire toute copie. Le présent message pouvant être altéré à notre insu, le groupe ARES ne peut pas être engagé par son contenu. www.ares.fr
************************************************** **************************************************


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 11-03-2008, 03:31 PM
Cole Robinson
 
Default Réf. : using virtinstall--devel and bus type option.

FCOMBERNOUS@ares.fr wrote:
>> to do with the 'bus' option, so you may be running in to
>> issues that have been fixed. Try:
>>
>> cd virtinst--devel
>> hg pull
>> hg update
>> python setup.py install
>>
>> Then see if the bus option isn't working. If not, report
>> back here.
>>
>
> Here the report
> - The man pages use the new syntax about the -disk option.
> - The virt-install --help is broken. Have a look to details below [1].
> - The -disk option looks to do the job.
>
> In fact, i wanted to use -disk option as described in [2]. With this one,
> it's possible to set the devide type to scsi and not only to ide. But with
> the last update, the virt-install don't know the scsi value :
> ERROR Error with storage parameters: Unknown device type 'scsi'
>
>

Hmm, this sounds like you made an error on the command line.
You should use

--disk ...,bus=scsi,... rather than
--disk ...,device=scsi...

If you didn't make that mistake, please paste the full command
line you used.

> [1]
> # virt-install --help
> ERROR:root:'ascii' codec can't decode byte 0xc3 in position 171: ordinal
> not in range(128)
> Traceback (most recent call last):
> File "/usr/bin/virt-install", line 715, in <module>
> main()
> File "/usr/bin/virt-install", line 504, in main
> options = parse_args()
> File "/usr/bin/virt-install", line 466, in parse_args
> (options,args) = parser.parse_args()
> File "/usr/lib/python2.5/optparse.py", line 1385, in parse_args
> stop = self._process_args(largs, rargs, values)
> File "/usr/lib/python2.5/optparse.py", line 1425, in _process_args
> self._process_long_opt(rargs, values),
> File "/usr/lib/python2.5/optparse.py", line 1500, in _process_long_opt
> option.process(opt, value, values, self)
> File "/usr/lib/python2.5/optparse.py", line 782, in process
> self.action, self.dest, opt, value, values, parser)
> File "/usr/lib/python2.5/optparse.py", line 804, in take_action
> parser.print_help()
> File "/usr/lib/python2.5/site-packages/virtinst/cli.py", line 51, in
> print_help
> file.write(self.format_help().encode(encoding, "replace"))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 171:
> ordinal not in range(128)
>
>

Hmm, we supposedly fixed this bug. It has to do with viewing
the help message with a local that uses non-ascii characters.
I'll try to find the fix.

Thanks,
Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 11-03-2008, 04:52 PM
Guido Günther
 
Default Réf. : using virtinstall--devel and bus type option.

On Mon, Nov 03, 2008 at 10:56:00AM +0100, FCOMBERNOUS@ares.fr wrote:
> In fact, i wanted to use -disk option as described in [2]. With this one,
> it's possible to set the devide type to scsi and not only to ide. But with
> the last update, the virt-install don't know the scsi value :
> ERROR Error with storage parameters: Unknown device type 'scsi'
What command are you using, I'm using e.g.:

--disk path=/tmp/bla2,device=disk,size=1,bus=virtio

Cheers,
-- Guido

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 09:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org