[Starlingx-discuss] [MultiOS] Maintenance enabling on openSUSE - first steps and errors

Rosales Jimenez, Marcela A marcela.a.rosales.jimenez at intel.com
Tue Oct 8 16:24:23 UTC 2019


Thanks Victor and Al, that's very useful.

Just to let you know, I completed the experiment I described, you can see the results in my repo [1]. 

Most of the errors are because of the missing platform.conf. As I am blocked right now I'll be working
with Dominig to do the porting of the Kickstarts to AutoYaST.

Thanks!

Marcela

[1] https://github.com/marcelarosalesj/learning-starlingx/blob/master/roadmap/opensuse-mtce-enabling.md

On 10/8/19, 8:30 AM, "Bailey, Henry Albert (Al)" <Al.Bailey at windriver.com> wrote:

    Nearly all those files are written through  ansible, stx-puppet and sysinv as part of provisioning steps before maintenance can run.
    
    /etc/platform/platform.conf  is written through puppet here
    https://opendev.org/starlingx/stx-puppet/src/branch/master/puppet-manifests/src/modules/platform/manifests/config.pp#L50
    
    The /var/run/.goenabled  is written when this line is executed
    https://opendev.org/starlingx/metal/src/branch/master/mtce/src/scripts/goenabled.service#L9
    
    Al
    
    -----Original Message-----
    From: Victor Rodriguez [mailto:vm.rod25 at gmail.com] 
    Sent: Monday, October 07, 2019 8:29 PM
    To: Rosales Jimenez, Marcela A; Miller, Frank
    Cc: Dominig ar Foll (Intel Open Source); Wold, Saul; starlingx-discuss at lists.starlingx.io
    Subject: Re: [Starlingx-discuss] [MultiOS] Maintenance enabling on openSUSE - first steps and errors
    
    On Mon, Oct 7, 2019 at 7:15 PM Rosales Jimenez, Marcela A
    <marcela.a.rosales.jimenez at intel.com> wrote:
    >
    > Hi team,
    >
    >
    >
    > As you may know, we have all the StarlingX flock packaged and available for openSUSE in OBS [1], but we still need to make it run and work correctly.
    >
    >
    >
    > For StarlingX Maintenance services enabling on openSUSE I am doing the following experiment:
    >
    >
    >
    > Identify MTCE appropriate projects to enable on openSUSE (all except kickstart and pxe-network-installer)
    > Identify per repo, the packages generated
    > Identify per package, its services provided
    > Install one by one the MTCE packages
    > After an installation, run the service’s binary manually (without systemd or Service Manager, as all that flow is not supported in openSUSE yet)
    >
    >
    >
    > My goal is to run all services and see if they have common problems, so I can start asking questions and solving the ones that impact more services first.
    >
    >
    >
    > So, I mapped everything into a list here [2], and started the step 4 and 5.
    >
    > I installed mtce-1.0-lp151.10.2.x86_64.rpm and libamon1-1.0-lp151.10.2.x86_64.rpm on an openSUSE vagrant VM, I have my working flow documented in a github repo [3].
    >
    >
    >
    > Here are the results I have for now:
    >
    > project: mtce
    >
    >     package: libamon1-1.0-lp151.10.2.x86_64.rpm (184 KB) / this is pmon [SUCCESSFUL INSTALLATION]
    >
    >         service: pmon.service - Missing /etc/platform/platform.conf
    >
    >     package: mtce-1.0-lp151.10.2.x86_64.rpm (902 KB) [SUCCESSFUL INSTALLATION]
    >
    >         service: fsmon.service - Missing /etc/platform/platform.conf
    >
    >         service: goenabled.service - failed to write state file /var/run/.goenabled, but returns an exit status 0 if it runs with sudo
    >
    >         service: hbsClient.service - Missing /etc/platform/platform.conf
    >
    >         service: hwclock.service - exit status 0, but it has some errors about /usr/lib/locale/en_US.UTF-8/ not existing, in openSUSE is /usr/lib/locale/en_US.utf8/
    >
    >         service: mtcClient.service - Missing /etc/platform/platform.conf
    >
    >         service: mtcalarm.service - Missing /etc/platform/platform.conf
    >
    >         service: mtclog.service - Missing /etc/platform/platform.conf
    >
    >
    >
    > My questions:
    >
    > At least for now I see that most of the errors are about not having /etc/platform/platform.conf file. Who provides that file? How do I satisfy that dependency? In the spec file?
    
    Have you try dnf provides  /etc/platform/platform.conf
    DNF has this feature:
    https://dnf.readthedocs.io/en/latest/command_ref.html#provides-command-label
    
    > Also, I don’t know what are the expected results of each service. Is it enough to get an exit status of 0?
    
    I don't think that exit status is good enough, I think we need to work
    on a test plan for each flock service. Originally each service should
    be documented about what are the expected functions it should perform.
    Based on that anyone could develop the test case. We can work on a
    test plan for the flock services as part of R4 but not sure if is
    already in the plan or not
    
    Regards
    
    
    
    >
    >
    >
    > Dominig, Saul, do you think this is a good experiment? Do you have any suggestion for me?
    >
    >
    >
    > Thanks!
    >
    >
    >
    > Marcela
    >
    >
    >
    > [1] https://build.opensuse.org/project/show/Cloud:StarlingX:2.0
    >
    > [2] https://github.com/marcelarosalesj/learning-starlingx/blob/master/roadmap/opensuse-mtce-enabling.md
    >
    > [3] https://github.com/marcelarosalesj/suse-starlingx/tree/master/vagrant
    >
    >
    >
    > _______________________________________________
    > Starlingx-discuss mailing list
    > Starlingx-discuss at lists.starlingx.io
    > http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
    
    _______________________________________________
    Starlingx-discuss mailing list
    Starlingx-discuss at lists.starlingx.io
    http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss
    



More information about the Starlingx-discuss mailing list