Skip to content

Instantly share code, notes, and snippets.

View ancorgs's full-sized avatar

Ancor Gonzalez Sosa ancorgs

  • Suse Linux Gmbh
  • Las Palmas de Gran Canaria
View GitHub Profile
@ancorgs
ancorgs / cockpit-01.md
Last active April 21, 2022 12:07
Cockpit functionality

Cockpit functionality

This document tries to summarize what Cockpit can currently do. Comparing each area with the equivalent tool that can be used to achieve the same in current versions of SLE.

Basic system management

Inspecting the logs

Cockpit contains a viewer that is pretty similar in capabilities to yast2-journal.

@ancorgs
ancorgs / cockpit-01.md
Last active June 8, 2022 16:25
Cockpit as 1:1 system management system
if AutoinstReporter
if error?
Please correct these problems and try again
[Abort]
else
Do you want to continue?
[Yes] [No]
end
else (Reporter)
No extra message
@ancorgs
ancorgs / password_last_change.md
Last active May 13, 2021 09:08
Options for last_change

The initial situation

The third field of /etc/shadow contains the date of last password change. It can contain:

  • An empty string: means that aging features are disabled
  • A zero: means the user must change the password in next login
  • A set of digits: represents the date of the latest password change

We currently have this, which doesn't fly because we cannot distinguish if a value of nil really means that aging is disabled or simply that we do not know the date/state, for example for a new user that is not written to /etc/shadow yet.

@ancorgs
ancorgs / recent_feedback.md
Last active January 8, 2021 10:49
Recent feedback for YaST

End of year 2020 survey

General announcement in the mailing list

I got early access to all the individual answers. Things I see mentioned several times:

  • About the installation:
    • Quite some people say it should be simpler
    • Most concrete complaints are about how hard is to setup the storage and the WiFi.
  • In a running system:
@ancorgs
ancorgs / strange.txt
Last active December 15, 2020 13:22
yardoc differences
In my laptop:
> yardoc -v
yard 0.9.25
> yardoc
Files: 576
Modules: 79 ( 14 undocumented)
Classes: 688 ( 4 undocumented)
Constants: 127 ( 42 undocumented)
@ancorgs
ancorgs / disk_test.md
Last active November 2, 2020 13:19
Proposed test cases for the _netdev option

Proposed RSpec output for Y2Storage::Disk

#in_network?

  • if the #driver_modules reported by hwinfo for the disk include iscsi-tcp, bnx2i or qedi
    • returns true
  • if the #driver_modules reported by hwinfo for the disk include fcoe, bnx2fc or qedf
    • returns true
  • if the #driver_modules reported by hwinfo for the disk does not include any of the values above
  • returns false
@ancorgs
ancorgs / disk_test.md
Last active November 2, 2020 11:42
Test cases for the _netdev option

RSpec output for Y2Storage::Disk (excerpt)

#in_network?

  • for a disk with data transport fcoe
    • returns true
  • for a disk with data transport iscsi
    • returns true
  • for a disk with data transport fc (same applies to sbp, sas, sata, spi & usb)
    • returns false
  • for a disk with unknown data transport

Moving qgroup probing/editing to libstorage-ng

Reasons to do it

  • The same mounting used to probe the subvolumes could be used to probe the qgroups.

  • The same mounting used during the libstorage-ng's commit phase to create the subvolumes could be used to modify the qgroups.

HWInfoReader
include Singleton
#for_device
#reset
#reset is called by StorageManager during probing
Stores the information into the singleton object
Reads the information in the first call to #for_device
#for_device is called by BlkDevice