[opensuse-autoinstall] Specify RIS service as add_on?
Hey everyone, another simple Autoyast question: Can I somehow specify a RIS (http://en.opensuse.org/openSUSE:Standards_Repository_Index_Service) URL, so that YaST gets all repositories from a RIS repoindex.xml file? I tried to add is as an add_on product: <add_on_products config:type="list"> <listentry> <media_url>nfs://<server>/ha/export/install/linux/opensuse/11.4/ris/base</media_url> <product>OpenSUSE11.4</product> <product_dir>/</product_dir> <name>AutoYaST_LNT_RIS</name> </listentry> ... But this did not work. The AutoYast Docs did not lead me to a solution yet, still looking though. BTW: Thanks Uwe for your answer to my "copy directory" question! -- Dipl.-Ing. Joschi Brauchle, M.S. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: joschi.brauchle@tum.de Web: http://www.lnt.ei.tum.de/
On 03.07.2012 09:19, Joschi Brauchle wrote:
Can I somehow specify a RIS (http://en.opensuse.org/openSUSE:Standards_Repository_Index_Service) URL, so that YaST gets all repositories from a RIS repoindex.xml file?
I tried to add is as an add_on product: <add_on_products config:type="list"> <listentry>
<media_url>nfs://<server>/ha/export/install/linux/opensuse/11.4/ris/base</media_url>
<product>OpenSUSE11.4</product> <product_dir>/</product_dir> <name>AutoYaST_LNT_RIS</name> </listentry> ... But this did not work. The AutoYast Docs did not lead me to a solution yet, still looking though.
hm, I have to admit, I never tried to add a service instead of a repo. Zypp itself can handle that but I'm not sure if the yast installer can deal with it during installation. If your tried it as add-on and it did not work, then it's probably not supported. But you can use an autoyast init-script and add it with "zypper as nfs://...." for sure. You don't have it during installation phase then of course -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "We Want Revolution" by Covenant -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
I checked the y2log and when I specify the RIS service as an add_on, it seems to be detected as a "plaindir" repository (which is not working then of course). Can I maybe use a pre_script to create a /etc/zypp/services.d/service file? Would that work or is it too late at that stage? On 07/03/2012 11:00 AM, Uwe Gansert wrote:
On 03.07.2012 09:19, Joschi Brauchle wrote:
Can I somehow specify a RIS (http://en.opensuse.org/openSUSE:Standards_Repository_Index_Service) URL, so that YaST gets all repositories from a RIS repoindex.xml file?
I tried to add is as an add_on product: <add_on_products config:type="list"> <listentry>
<media_url>nfs://<server>/ha/export/install/linux/opensuse/11.4/ris/base</media_url>
<product>OpenSUSE11.4</product> <product_dir>/</product_dir> <name>AutoYaST_LNT_RIS</name> </listentry> ... But this did not work. The AutoYast Docs did not lead me to a solution yet, still looking though.
hm, I have to admit, I never tried to add a service instead of a repo. Zypp itself can handle that but I'm not sure if the yast installer can deal with it during installation. If your tried it as add-on and it did not work, then it's probably not supported.
But you can use an autoyast init-script and add it with "zypper as nfs://...." for sure. You don't have it during installation phase then of course
-- Dipl.-Ing. Joschi Brauchle, M.S. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: joschi.brauchle@tum.de Web: http://www.lnt.ei.tum.de/
So I tried that (creating a service file under /etc/zypp/services.d in the installation system from a pre-script) and it does not seem to be considered ... On 07/03/2012 11:45 AM, Joschi Brauchle wrote:
I checked the y2log and when I specify the RIS service as an add_on, it seems to be detected as a "plaindir" repository (which is not working then of course).
Can I maybe use a pre_script to create a /etc/zypp/services.d/service file? Would that work or is it too late at that stage?
On 07/03/2012 11:00 AM, Uwe Gansert wrote:
On 03.07.2012 09:19, Joschi Brauchle wrote:
Can I somehow specify a RIS (http://en.opensuse.org/openSUSE:Standards_Repository_Index_Service) URL, so that YaST gets all repositories from a RIS repoindex.xml file?
I tried to add is as an add_on product: <add_on_products config:type="list"> <listentry>
<media_url>nfs://<server>/ha/export/install/linux/opensuse/11.4/ris/base</media_url>
<product>OpenSUSE11.4</product> <product_dir>/</product_dir> <name>AutoYaST_LNT_RIS</name> </listentry> ... But this did not work. The AutoYast Docs did not lead me to a solution yet, still looking though.
hm, I have to admit, I never tried to add a service instead of a repo. Zypp itself can handle that but I'm not sure if the yast installer can deal with it during installation. If your tried it as add-on and it did not work, then it's probably not supported.
But you can use an autoyast init-script and add it with "zypper as nfs://...." for sure. You don't have it during installation phase then of course
-- Dipl.-Ing. Joschi Brauchle, M.S. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: joschi.brauchle@tum.de Web: http://www.lnt.ei.tum.de/
On 03.07.2012 12:15, Joschi Brauchle wrote:
So I tried that (creating a service file under /etc/zypp/services.d in the installation system from a pre-script) and it does not seem to be considered ...
pre-scripts run too late. The package resolver is already initialized then. If you use 12.1 (I'm afraid your are using 11.4), then you can trigger a restart of yast with a pre-script. So you can create the file with a pre-script, then trigger a yast-restart and then the resolver should be reinitialized. If you are using 11.4, you can try to put the config file into a DUD. Or try this: cd inst-source-of-11.4 mkdir -p linux/suse/i386-11.4/inst-sys/etc/zypp/services.d and copy the config file there. Then it should be loaded too into the inst-sys (beware of the architecture in the path). The mkdir/cp workaround works only on inst-sources that are mounted. Not on ftp or http(s) inst-sources. The driverupdate file always works. -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Breathe (Acretongue)" by Seabound -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hello Uwe, yes, I am using 11.4, so your linux/suse... procedure works nicely (wow, what a great way to add files to the install system through NFS!). The service file is found in the right location in the installation system and I can see in y2log that it is considered at some point: --------- ... 2012-07-03 11:45:28 <1> test114(3565) [Pkg] PkgFunctions.cc(CreateRepoManager):242 Path to repository files: /etc/zypp/repos.d 2012-07-03 11:45:28 <1> test114(3565) [zypp] PathInfo.cc(readdir):574 readdir /etc/zypp/services.d 2012-07-03 11:45:28 <1> test114(3565) [zypp] IniParser.cc(parse):69 Start parsing /etc/zypp/services.d/LNT.service[g___] 2012-07-03 11:45:28 <1> test114(3565) [zypp] IniParser.cc(parse):119 Done parsing /etc/zypp/services.d/LNT.service[_eF_] 2012-07-03 11:45:28 <1> test114(3565) [Progress++] ProgressData.cc(report):86 {#15|/etc/zypp/services.d/LNT.service}END 2012-07-03 11:45:28 <1> test114(3565) [zypp] ServiceFileReader.cc(parseServices):54 LNT 2012-07-03 11:45:28 <1> test114(3565) [zypp] ServiceFileReader.cc(parseServices):95 Linking ServiceInfo with file /etc/zypp/services.d/LNT.service 2012-07-03 11:45:28 <1> test114(3565) [zypp] RepoManager.cc(init_knownRepositories):552 start construct known repos 2012-07-03 11:45:28 <1> test114(3565) [zypp] RepoManager.cc(init_knownRepositories):573 end construct known repos ... --------- But then, it looks like the service is not used or activated or anything. The repos defined in the repoindex.xml are definitely not added and the lines above are all I see about services. I guess there is no logic for processing service files in the installation procedure. You don't happen to know how I would force YaST to do that? BTW: I think adding RIS to AutoYast would be a nice feature in general. We are trying to consolidate our zypper config for all our linux systems. So editing the AutoYaST.XML each time we change/add repos to keep up-to-date with already-installed systems is an overhead we would like to get rid of by using RIS in the installation as well. Best regards, Joschi Brauchle On 07/03/2012 05:02 PM, Uwe Gansert wrote:
On 03.07.2012 12:15, Joschi Brauchle wrote:
So I tried that (creating a service file under /etc/zypp/services.d in the installation system from a pre-script) and it does not seem to be considered ...
pre-scripts run too late. The package resolver is already initialized then. If you use 12.1 (I'm afraid your are using 11.4), then you can trigger a restart of yast with a pre-script. So you can create the file with a pre-script, then trigger a yast-restart and then the resolver should be reinitialized.
If you are using 11.4, you can try to put the config file into a DUD. Or try this:
cd inst-source-of-11.4 mkdir -p linux/suse/i386-11.4/inst-sys/etc/zypp/services.d
and copy the config file there. Then it should be loaded too into the inst-sys (beware of the architecture in the path).
The mkdir/cp workaround works only on inst-sources that are mounted. Not on ftp or http(s) inst-sources. The driverupdate file always works.
-- Dipl.-Ing. Joschi Brauchle, M.S. Institute for Communications Engineering (LNT) Technische Universitaet Muenchen (TUM) 80290 Munich, Germany Tel (work): +49 89 289-23474 Fax (work): +49 89 289-23490 E-mail: joschi.brauchle@tum.de Web: http://www.lnt.ei.tum.de/
On 03.07.2012 17:57, Joschi Brauchle wrote:
But then, it looks like the service is not used or activated or anything. The repos defined in the repoindex.xml are definitely not added and the lines above are all I see about services.
can you do me a favour and test if your service works when you add the service during a manual installation? I want to know if it's a general missing feature during installation or a missing part in the add-on client of autoyast. -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
Hello Uwe, I just tried to add the service during a manual installation of 11.4. Short summary: It did not work! Long version: Looking at y2log, one can see that parts of the logic to process services is indeed there. See the part of y2log where I run the dialog to add an AddOn with "specify URL" and URL:"nfs://gemini/ha/export/install/linux/opensuse/11.4/ris" plus NAME:"RIS Service". When I click "OK", the following happens: -------y2log------ 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:2331 Type dialog returned $["download":true, "ui":`next] 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:196 URL is ISO: false 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:279 URL scheme for URL : url 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:2225 Displaying dialog for protocol url 2012-07-12 11:31:05 <1> test114(3535) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):134 Shortcut conflict: 'R' used for YInputField "Repository Name" at 0x9e9208 2012-07-12 11:31:05 <1> test114(3535) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):134 Shortcut conflict: 'R' used for YQWizardButton "Abort" at 0x9ea2f8 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 <libqt-debug> Registering QFrame(0xcbbdb0, name = "steps") for parent YQWizard(0xcc6570, name = "wizard") 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 <libqt-debug> Registering QFrame(0xcc74f0, name = "work_area") for parent YQWizard(0xcc6570, name = "wizard") 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 2012-07-12 11:31:26 <2> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):729 <libqt-warning> QLayout: Attempting to add QLayout "" to QFrame "work_area", which already has a layout 2012-07-12 11:31:26 <1> test114(3535) [ui] YPushButton.cc(setFunctionKey):204 Guessing button role YOKButton for YPushButton "Next" at 0xcc0108 from function key F10 2012-07-12 11:31:26 <2> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):729 <libqt-warning> QColor::setNamedColor: Unknown color name '#bebbe' 2012-07-12 11:31:26 <2> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):729 <libqt-warning> QCssParser::parseHexColor: Unknown color name '#bebbe' 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:46 createSource: nfs://gemini/ha/export/install/linux/opensuse/11.4/ris, plaindir: false, download: true, name: RIS Service 2012-07-12 11:31:27 <1> test114(3535) [YCP] Progress.ycp:380 Progress::New(Adding a New Repository, 3, ["Check Repository Type", "Add Repository", "Read Repository License"]) 2012-07-12 11:31:27 <1> test114(3535) [YCP] Progress.ycp:469 No progress icons defined 2012-07-12 11:31:27 <1> test114(3535) [Pkg] packager/repositories_include.ycp:79 Pkg Builtin called: ServiceProbe 2012-07-12 11:31:27 <1> test114(3535) [Pkg] PkgFunctions.cc(CreateRepoManager):242 Path to repository files: /etc/zypp/repos.d 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):552 start construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):573 end construct known repos 2012-07-12 11:31:27 <1> test114(3535) [Pkg] ServiceManager.cc(Probe):272 Probing service at nfs://gemini/ha/export/install/linux/opensuse/11.4/ris... 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaSetAccess.cc(rewriteUrl):392 Rewriting url nfs://gemini/ha/export/install/linux/opensuse/11.4/ris 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaAccess.cc(open):118 Trying scheme 'nfs' 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaNFS.cc(MediaNFS):48 MediaNFS::MediaNFS(nfs://gemini/ha/export/install/linux/opensuse/11.4/ris, ) 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaAccess.cc(open):234 Opened: nfs(nfs://gemini/ha/export/install/linux/opensuse/11.4/ris not attached; localRoot "") 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(open):279 Opened new media access using id 5 to nfs://gemini/ha/export/install/linux/opensuse/11.4/ris 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide file /repo/repoindex.xml from media number 1 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(attach):415 attach(id=5) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(createAttachPoint):393 Trying to create attach point in /var/adm/mount 2012-07-12 11:31:27 <1> test114(3535) [zypp] PathInfo.cc(mkdir):315 mkdir /var/adm/mount/AP_0x00000001 00755 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(createAttachPoint):370 Created default attach point /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):229 Executing '/bin/mount' '-t' 'nfs' '-o' 'ro,nolock,soft,timeo=300' 'gemini:/ha/export/install/linux/opensuse/11.4/ris' '/var/adm/mount/AP_0x00000001' 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):381 pid 8316 launched 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(checkStatus):482 Pid 8316 successfully completed 2012-07-12 11:31:27 <1> test114(3535) [zypp++] Mount.cc(Status):260 exit code: 0 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(mount):156 mounted gemini:/ha/export/install/linux/opensuse/11.4/ris /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(checkAttached):520 Forced check of the mount table 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(checkAttached):563 Found media name nfs<gemini:/ha/export/install/linux/opensuse/11.4/ris> in the mount table as gemini:/ha/export/install/linux/opensuse/11.4/ris 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):54 ~Mount() 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):61 ~Mount() end 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(attach):647 Attached: nfs://gemini/ha/export/install/linux/opensuse/11.4/ris attached; localRoot "/var/adm/mount/AP_0x00000001" 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(checkDesired):109 checkDesired(5): desired (report by zypp::media::NoVerifier) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(5): desired (cached) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(5): desired (cached) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaSetAccess.cc(release):431 Releasing all media IDs held by this MediaSetAccess 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(release):488 release(id=5) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(release):707 Request to release attached media nfs<gemini:/ha/export/install/linux/opensuse/11.4/ris>, use count=1 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(release):714 Releasing media nfs<gemini:/ha/export/install/linux/opensuse/11.4/ris> 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):229 Executing '/bin/umount' '/var/adm/mount/AP_0x00000001' 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):381 pid 8320 launched 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(checkStatus):482 Pid 8320 successfully completed 2012-07-12 11:31:27 <1> test114(3535) [zypp++] Mount.cc(Status):260 exit code: 0 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(umount):227 unmounted /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):54 ~Mount() 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):61 ~Mount() end 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(removeAttachPoint):178 MediaHandler - checking if to remove attach point 2012-07-12 11:31:27 <1> test114(3535) [zypp] PathInfo.cc(recursive_rmdir):429 recursive_rmdir /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(removeAttachPoint):190 Deleted default attach point /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(release):768 Released: nfs://gemini/ha/export/install/linux/opensuse/11.4/ris not attached; localRoot "" 2012-07-12 11:31:27 <1> test114(3535) [Pkg] ServiceManager.cc(Probe):274 Detected service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:80 Probed service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:84 Adding a service of type ris... 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:121 Added new service: $["alias":"service", "autorefresh":true, "enabled":true, "name":"RIS Service", "url":"nfs://gemini/ha/export/install/linux/opensuse/11.4/ris"] 2012-07-12 11:31:27 <1> test114(3535) [Pkg] add-on/add-on-workflow.ycp:181 Pkg Builtin called: SourceGetCurrent 2012-07-12 11:31:27 <1> test114(3535) [YCP] add-on/add-on-workflow.ycp:182 Sources with new one added: [0] 2012-07-12 11:31:27 <2> test114(3535) [YCP] add-on/add-on-workflow.ycp:202 Fallback src_id: 0 2012-07-12 11:31:27 <1> test114(3535) [Pkg] add-on/add-on-workflow.ycp:208 Pkg Builtin called: SourceRefreshNow 2012-07-12 11:31:27 <1> test114(3535) [Pkg] Source_Download.cc(SourceRefreshHelper):393 Forced refresh : false 2012-07-12 11:31:27 <1> test114(3535) [Pkg] PkgFunctions.cc(CreateRepoManager):242 Path to repository files: /etc/zypp/repos.d 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):552 start construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):573 end construct known repos 2012-07-12 11:31:27 <1> test114(3535) [Pkg] Source_Download.cc(SourceRefreshHelper):416 Refreshing metadata 'openSUSE-11.4-11.4-0' 2012-07-12 11:31:27 <1> test114(3535) [Pkg] PkgFunctions.cc(CreateRepoManager):242 Path to repository files: /etc/zypp/repos.d 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):552 start construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):573 end construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RpmDb.cc(initDatabase):322 Calling initDatabase: '(/)/var/lib/rpm' (quickinit) ... ...stripped the rest... no more processing of services found... ------------------ Clearly the RIS service is detected and added, according to the line: ------------------ 2012-07-12 11:31:27 <1> test114(3535) [Pkg] ServiceManager.cc(Probe):274 Detected service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:80 Probed service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:84 Adding a service of type ris... 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:121 Added new service: $["alias":"service", "autorefresh":true, "enabled":true, "name":"RIS Service", "url":"nfs://gemini/ha/export/install/linux/opensuse/11.4/ris"] ------------------- but it seems like the respositories defined by the service are not loaded or anything. The dialog returns to an empty list of AddOns. If I continue with the installation process and stop at the software selection, I can go to "Details" and list packages by "Repositories". This repo list only contains the repo from the "install=<path>" kernel parameter, but none of the repos defined in the RIS service. Best regards, Joschi Brauchle On 07/06/2012 01:25 PM, Uwe Gansert wrote:
On 03.07.2012 17:57, Joschi Brauchle wrote:
But then, it looks like the service is not used or activated or anything. The repos defined in the repoindex.xml are definitely not added and the lines above are all I see about services.
can you do me a favour and test if your service works when you add the service during a manual installation? I want to know if it's a general missing feature during installation or a missing part in the add-on client of autoyast.
Just for reference, I added a feature request for OS12.2 on bugzilla in order for RIS/zypper services to be included during the installation procedure. https://bugzilla.novell.com/show_bug.cgi?id=778666 Best regards, Joschi Brauchle On 07/12/2012 05:46 PM, Joschi Brauchle wrote:
Hello Uwe,
I just tried to add the service during a manual installation of 11.4. Short summary: It did not work!
Long version: Looking at y2log, one can see that parts of the logic to process services is indeed there. See the part of y2log where I run the dialog to add an AddOn with "specify URL" and URL:"nfs://gemini/ha/export/install/linux/opensuse/11.4/ris" plus NAME:"RIS Service". When I click "OK", the following happens:
-------y2log------ 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:2331 Type dialog returned $["download":true, "ui":`next] 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:196 URL is ISO: false 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:279 URL scheme for URL : url 2012-07-12 11:31:05 <1> test114(3535) [YCP] SourceDialogs.ycp:2225 Displaying dialog for protocol url 2012-07-12 11:31:05 <1> test114(3535) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):134 Shortcut conflict: 'R' used for YInputField "Repository Name" at 0x9e9208 2012-07-12 11:31:05 <1> test114(3535) [ui-shortcuts] YShortcutManager.cc(checkShortcuts):134 Shortcut conflict: 'R' used for YQWizardButton "Abort" at 0x9ea2f8 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 <libqt-debug> Registering QFrame(0xcbbdb0, name = "steps") for parent YQWizard(0xcc6570, name = "wizard") 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 <libqt-debug> Registering QFrame(0xcc74f0, name = "work_area") for parent YQWizard(0xcc6570, name = "wizard") 2012-07-12 11:31:26 <1> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):725 2012-07-12 11:31:26 <2> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):729 <libqt-warning> QLayout: Attempting to add QLayout "" to QFrame "work_area", which already has a layout 2012-07-12 11:31:26 <1> test114(3535) [ui] YPushButton.cc(setFunctionKey):204 Guessing button role YOKButton for YPushButton "Next" at 0xcc0108 from function key F10 2012-07-12 11:31:26 <2> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):729 <libqt-warning> QColor::setNamedColor: Unknown color name '#bebbe' 2012-07-12 11:31:26 <2> test114(3535) [qt-ui] YQUI.cc(qMessageHandler):729 <libqt-warning> QCssParser::parseHexColor: Unknown color name '#bebbe' 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:46 createSource: nfs://gemini/ha/export/install/linux/opensuse/11.4/ris, plaindir: false, download: true, name: RIS Service 2012-07-12 11:31:27 <1> test114(3535) [YCP] Progress.ycp:380 Progress::New(Adding a New Repository, 3, ["Check Repository Type", "Add Repository", "Read Repository License"]) 2012-07-12 11:31:27 <1> test114(3535) [YCP] Progress.ycp:469 No progress icons defined 2012-07-12 11:31:27 <1> test114(3535) [Pkg] packager/repositories_include.ycp:79 Pkg Builtin called: ServiceProbe 2012-07-12 11:31:27 <1> test114(3535) [Pkg] PkgFunctions.cc(CreateRepoManager):242 Path to repository files: /etc/zypp/repos.d 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):552 start construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):573 end construct known repos 2012-07-12 11:31:27 <1> test114(3535) [Pkg] ServiceManager.cc(Probe):272 Probing service at nfs://gemini/ha/export/install/linux/opensuse/11.4/ris... 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaSetAccess.cc(rewriteUrl):392 Rewriting url nfs://gemini/ha/export/install/linux/opensuse/11.4/ris 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaAccess.cc(open):118 Trying scheme 'nfs' 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaNFS.cc(MediaNFS):48 MediaNFS::MediaNFS(nfs://gemini/ha/export/install/linux/opensuse/11.4/ris, ) 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaAccess.cc(open):234 Opened: nfs(nfs://gemini/ha/export/install/linux/opensuse/11.4/ris not attached; localRoot "") 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(open):279 Opened new media access using id 5 to nfs://gemini/ha/export/install/linux/opensuse/11.4/ris 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide file /repo/repoindex.xml from media number 1 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(attach):415 attach(id=5) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(createAttachPoint):393 Trying to create attach point in /var/adm/mount 2012-07-12 11:31:27 <1> test114(3535) [zypp] PathInfo.cc(mkdir):315 mkdir /var/adm/mount/AP_0x00000001 00755 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(createAttachPoint):370 Created default attach point /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):229 Executing '/bin/mount' '-t' 'nfs' '-o' 'ro,nolock,soft,timeo=300' 'gemini:/ha/export/install/linux/opensuse/11.4/ris' '/var/adm/mount/AP_0x00000001' 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):381 pid 8316 launched 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(checkStatus):482 Pid 8316 successfully completed 2012-07-12 11:31:27 <1> test114(3535) [zypp++] Mount.cc(Status):260 exit code: 0 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(mount):156 mounted gemini:/ha/export/install/linux/opensuse/11.4/ris /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(checkAttached):520 Forced check of the mount table 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(checkAttached):563 Found media name nfs<gemini:/ha/export/install/linux/opensuse/11.4/ris> in the mount table as gemini:/ha/export/install/linux/opensuse/11.4/ris 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):54 ~Mount() 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):61 ~Mount() end 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(attach):647 Attached: nfs://gemini/ha/export/install/linux/opensuse/11.4/ris attached; localRoot "/var/adm/mount/AP_0x00000001" 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(checkDesired):109 checkDesired(5): desired (report by zypp::media::NoVerifier) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(5): desired (cached) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(5): desired (cached) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaSetAccess.cc(release):431 Releasing all media IDs held by this MediaSetAccess 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaManager.cc(release):488 release(id=5) 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(release):707 Request to release attached media nfs<gemini:/ha/export/install/linux/opensuse/11.4/ris>, use count=1 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(release):714 Releasing media nfs<gemini:/ha/export/install/linux/opensuse/11.4/ris> 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):229 Executing '/bin/umount' '/var/adm/mount/AP_0x00000001' 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(start_program):381 pid 8320 launched 2012-07-12 11:31:27 <1> test114(3535) [zypp++] ExternalProgram.cc(checkStatus):482 Pid 8320 successfully completed 2012-07-12 11:31:27 <1> test114(3535) [zypp++] Mount.cc(Status):260 exit code: 0 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(umount):227 unmounted /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):54 ~Mount() 2012-07-12 11:31:27 <1> test114(3535) [zypp] Mount.cc(~Mount):61 ~Mount() end 2012-07-12 11:31:27 <1> test114(3535) [zypp++] MediaHandler.cc(removeAttachPoint):178 MediaHandler - checking if to remove attach point 2012-07-12 11:31:27 <1> test114(3535) [zypp] PathInfo.cc(recursive_rmdir):429 recursive_rmdir /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(removeAttachPoint):190 Deleted default attach point /var/adm/mount/AP_0x00000001 2012-07-12 11:31:27 <1> test114(3535) [zypp] MediaHandler.cc(release):768 Released: nfs://gemini/ha/export/install/linux/opensuse/11.4/ris not attached; localRoot "" 2012-07-12 11:31:27 <1> test114(3535) [Pkg] ServiceManager.cc(Probe):274 Detected service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:80 Probed service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:84 Adding a service of type ris... 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:121 Added new service: $["alias":"service", "autorefresh":true, "enabled":true, "name":"RIS Service", "url":"nfs://gemini/ha/export/install/linux/opensuse/11.4/ris"] 2012-07-12 11:31:27 <1> test114(3535) [Pkg] add-on/add-on-workflow.ycp:181 Pkg Builtin called: SourceGetCurrent 2012-07-12 11:31:27 <1> test114(3535) [YCP] add-on/add-on-workflow.ycp:182 Sources with new one added: [0] 2012-07-12 11:31:27 <2> test114(3535) [YCP] add-on/add-on-workflow.ycp:202 Fallback src_id: 0 2012-07-12 11:31:27 <1> test114(3535) [Pkg] add-on/add-on-workflow.ycp:208 Pkg Builtin called: SourceRefreshNow 2012-07-12 11:31:27 <1> test114(3535) [Pkg] Source_Download.cc(SourceRefreshHelper):393 Forced refresh : false 2012-07-12 11:31:27 <1> test114(3535) [Pkg] PkgFunctions.cc(CreateRepoManager):242 Path to repository files: /etc/zypp/repos.d 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):552 start construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):573 end construct known repos 2012-07-12 11:31:27 <1> test114(3535) [Pkg] Source_Download.cc(SourceRefreshHelper):416 Refreshing metadata 'openSUSE-11.4-11.4-0' 2012-07-12 11:31:27 <1> test114(3535) [Pkg] PkgFunctions.cc(CreateRepoManager):242 Path to repository files: /etc/zypp/repos.d 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):552 start construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RepoManager.cc(init_knownRepositories):573 end construct known repos 2012-07-12 11:31:27 <1> test114(3535) [zypp] RpmDb.cc(initDatabase):322 Calling initDatabase: '(/)/var/lib/rpm' (quickinit) ... ...stripped the rest... no more processing of services found... ------------------
Clearly the RIS service is detected and added, according to the line: ------------------ 2012-07-12 11:31:27 <1> test114(3535) [Pkg] ServiceManager.cc(Probe):274 Detected service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:80 Probed service type: ris 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:84 Adding a service of type ris... 2012-07-12 11:31:27 <1> test114(3535) [YCP] packager/repositories_include.ycp:121 Added new service: $["alias":"service", "autorefresh":true, "enabled":true, "name":"RIS Service", "url":"nfs://gemini/ha/export/install/linux/opensuse/11.4/ris"] ------------------- but it seems like the respositories defined by the service are not loaded or anything.
The dialog returns to an empty list of AddOns.
If I continue with the installation process and stop at the software selection, I can go to "Details" and list packages by "Repositories". This repo list only contains the repo from the "install=<path>" kernel parameter, but none of the repos defined in the RIS service.
Best regards, Joschi Brauchle
On 07/06/2012 01:25 PM, Uwe Gansert wrote:
On 03.07.2012 17:57, Joschi Brauchle wrote:
But then, it looks like the service is not used or activated or anything. The repos defined in the repoindex.xml are definitely not added and the lines above are all I see about services.
can you do me a favour and test if your service works when you add the service during a manual installation? I want to know if it's a general missing feature during installation or a missing part in the add-on client of autoyast.
participants (2)
-
Joschi Brauchle
-
Uwe Gansert