Validation below, fails without PPA, passes with:

$ ./lp2153951-test.sh --release resolute                      
    Launching resolute container lp2153951-628825 (phase 1: repositories + 
packages)
    Launching lp2153951-628825
    .....status: done
    Resetting cloud-init state and rebooting (phase 2: user configuration)
    status: done
    
    === apt-cache policy cloud-init (package source used in this test) ===
    cloud-init:
      Installed: 26.2-0ubuntu1~26.04.1
      Candidate: 26.2-0ubuntu1~26.04.1
      Version table:
     *** 26.2-0ubuntu1~26.04.1 500
            500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 
Packages
            100 /var/lib/dpkg/status
         26.1-0ubuntu2 500
            500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
    
    === Checks ===
    FAIL: tuser has no hashed password in /etc/shadow (got: '<empty>')
    
RESULT: FAIL


$ ./lp2153951-test.sh --release stonking                               
    Launching stonking container lp2153951-652392 (phase 2: repositories + 
packages)
    Launching lp2153951-652392
    ........................................................status: done
    Resetting cloud-init state and rebooting (phase 2: user configuration)
    status: done
    
    === apt-cache policy cloud-init (package source used in this test) ===
    cloud-init:
      Installed: 26.2-0ubuntu2
      Candidate: 26.2-0ubuntu2
      Version table:
     *** 26.2-0ubuntu2 500
            500 http://archive.ubuntu.com/ubuntu stonking/main amd64 Packages
            100 /var/lib/dpkg/status
    
    === Checks ===
    FAIL: tuser has no hashed password in /etc/shadow (got: '<empty>')
    
RESULT: FAIL


$ ./lp2153951-test.sh --release resolute --pocket 
ppa:chad.smith/sru-test-2153951
    Launching resolute container lp2153951-639947 (phase 1: repositories + 
packages)
    Launching lp2153951-639947
    .....status: done
    Resetting cloud-init state and rebooting (phase 2: user configuration)
    status: done
    
    === apt-cache policy cloud-init (package source used in this test) ===
    cloud-init:
      Installed: 26.2-0ubuntu1~26.04.2
      Candidate: 26.2-0ubuntu1~26.04.2
      Version table:
     *** 26.2-0ubuntu1~26.04.2 500
            500 
https://ppa.launchpadcontent.net/chad.smith/sru-test-2153951/ubuntu 
resolute/main amd64 Packages
            100 /var/lib/dpkg/status
         26.2-0ubuntu1~26.04.1 500
            500 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 
Packages
         26.1-0ubuntu2 500
            500 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages
    
    === Checks ===
    PASS: tuser has a hashed password in /etc/shadow (got: 
'$6$lp2153951$Iq7BfvEAR8qyz9eKAKs5sAGBBtyDoSRW0D2FnBJdG3Xy5.rLbSh29Hrds0VXSNzIx/1PNNmATPReqLjginX7/.')
    
RESULT: PASS


$ ./lp2153951-test.sh --release stonking --pocket 
ppa:chad.smith/sru-test-2153951
    Launching stonking container lp2153951-646080 (phase 1: repositories + 
packages)
    Launching lp2153951-646080
    .....status: done
    Resetting cloud-init state and rebooting (phase 2: user configuration)
    status: done
    
    === apt-cache policy cloud-init (package source used in this test) ===
    cloud-init:
      Installed: 26.2-0ubuntu3~26.10.1
      Candidate: 26.2-0ubuntu3~26.10.1
      Version table:
     *** 26.2-0ubuntu3~26.10.1 500
            500 
https://ppa.launchpadcontent.net/chad.smith/sru-test-2153951/ubuntu 
stonking/main amd64 Packages
            100 /var/lib/dpkg/status
         26.2-0ubuntu2 500
            500 http://archive.ubuntu.com/ubuntu stonking/main amd64 Packages
    
    === Checks ===
    PASS: tuser has a hashed password in /etc/shadow (got: 
'$6$lp2153951$Iq7BfvEAR8qyz9eKAKs5sAGBBtyDoSRW0D2FnBJdG3Xy5.rLbSh29Hrds0VXSNzIx/1PNNmATPReqLjginX7/.')
    
RESULT: PASS

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2153951

Title:
  unconfigured sssd leads to cloud-init removing a password from a user

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2153951/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to