Giter Club home page Giter Club logo

fty-core's Introduction

fty-core

DB access, OS integration and image scripts, ...

This repository is currently(*) concerned with overall OS image integration of an 42ITy based product, providing low-level bits not really relevant to any particular application component codebase.

  • It used to have more code in the beginning, but it was dispersed into other repositories over time, to help manageability and reduce build/test scopes.

NOTES:

  • SQL scripts filename, under database/sql, must be limited to 32 characters!

fty-core's People

Contributors

aquette avatar arnaudquette-eaton avatar barraudl avatar bkrauzova avatar boricj avatar cdominguezm avatar christiannerriere-eaton avatar eldoreijk avatar ericclappier-eaton avatar etnklendathu avatar francoisregisdegott-eaton avatar geraldguillaume avatar helderlloureiro-eaton avatar jana-rapava avatar jimklimov avatar karolhrdina avatar kkathreen avatar malanka avatar michal42 avatar mimixav avatar nicodav avatar perrettecl avatar stark-dev avatar thalman avatar vyskocilm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fty-core's Issues

Portability: adding new secondary groups to a user account

Current solution relies on usermod -G $grpname -a $username (notably -a -- which does not exist in all system toolkits).

If time comes, fix this to use a new helper script with a more complex but portable solution to find all the secondary groups the user is a member of, and pass the standard usermod -G $grp,name,list $username command. Scripting elements can be found in setup/10-bios-gpio.sh scriptlet.

snoopy should now support systemd-aware logging

FYI: Based on our old suggestion to snoopy, there was recent progress with issue a2o/snoopy#200 so their current git master should be more functional for logging systemd units.

It would be helpful to spin an experimental branch to check if it works and solves 42ity dev/test logging more neatly than it was addressed before, and tell the snoopy team if this feature is good.

update-rc3 does not allow downgrade even with forceflash

If I run:
update-rc3 -R -FF -U <1.5.0 image>
on 1.5.1 version, the script reports success and triggers reboot, but after the system boots again, it's still running 1.5.1 version. Factory reset works as expected.
Forceflash flag probably should allow downgrade, and if we decide it shouldn't, the script should return error.

Linux loopback sometimes gets stuck, blocking squashfs based test containers

Sometimes Linux loopback gets stuck with a loop device that can not be managed - neither destroyed nor removed. This then blocks re-mounting of e.g. same squashfs image for different VMs or even reusing it for a single new one. Host has to be rebooted to clear that state. Different images can be used however.

CI-RESETVM-INFO: /root/ci-reset-virtual-machine.sh:
    Creating a new VM rootfs at '/srv/libvirt/rootfs/fty-upstream-devel'
CI-RESETVM-INFO: /root/ci-reset-virtual-machine.sh:
    Mount the common RO squashfs at
    '/srv/libvirt/snapshots/../overlays-ro/fty-devel-image-18.01.05-10.09.04+1_x86_64_fty-devel_x86_64_upstream.squashfs-ro'
mount: /dev/loop1 is already mounted or
    /var/scratch/_lxc/_srv_libvirt/overlays-ro/fty-devel-image-18.01.05-10.09.04+1_x86_64_fty-devel_x86_64_upstream.squashfs-ro busy
CI-RESETVM-FATAL: /root/ci-reset-virtual-machine.sh: Can't mount squashfs

This is documented quite a lot over the years, so is a system issue. Maybe ci-reset-virtual-machine.sh can do something to try to avoid it however - e.g. if it is discovered how to trigger the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.