** Description changed:

  [Impact]
  
  When running landscape-config, this prompt always defaults to Yes:
  "Request a new registration for this computer now? (Y/n):"
  The landscape-config command can be used to change configuration options in 
/etc/landscape/client.conf and should default to No when running this command 
on a computer that is already registered to a Landscape server and that server 
doesn't change during that run of landscape-config.
  
  [Test Case]
  
  When running landscape-config, this prompt always defaults to Yes:
  "Request a new registration for this computer now? (Y/n):"
  The landscape-config command can be used to change configuration options in 
/etc/landscape/client.conf and should default to No when running this command 
on a computer that is already registered to a Landscape server and that server 
doesn't change during that run of landscape-config.
  
  To reproduce:
  
  1) Install landscape-client package on computer.
  2) Run landscape-config to register client for the first time.
  3) Run landscape-config again to change an option:
  sudo landscape-config --ping-interval=60
  
  [Regression Potential]
+ Admins and scripts who relied on the old behavior might be surprised that a 
new registration is not requested anymore by default if the client is already 
registered, but I believe it's a welcomed change. It was even a sort of known 
issue in our FAQ 
(https://help.landscape.canonical.com/RunningScripts#Enabling%20script%20execution):
+ """
+ /!\ Very important: when using this method [Ed: calling landscape-config], 
you MUST NOT request a new registration for the computer, as that will create a 
duplicate machine in your Landscape account!
+ """
  
  [Other Info]
  
  * Upstream revision:
  http://bazaar.launchpad.net/~landscape/landscape-client/trunk/revision/939
  
  [Original Description]
  
  When running landscape-config, this prompt always defaults to Yes:
  
  "Request a new registration for this computer now? (Y/n):"
  
  The landscape-config command can be used to change configuration options
  in /etc/landscape/client.conf and should default to No when running this
  command on a computer that is already registered to a Landscape server
  and that server doesn't change during that run of landscape-config.
  
  Steps to replicate:
  
  1) Install landscape-client package on computer
  $ sudo apt-get install landscape-client
  
  2) Run landscape-config to register client for the first time
  $ sudo landscape-config --account-name standalone --url 
https://<server>/message-system --ping-url http://<server>/ping
  
  3) Run landscape-config again to change an option
  $ sudo landscape-config --ping-interval=60
  
  [Test Case]
  
  When running landscape-config, this prompt always defaults to Yes:
  "Request a new registration for this computer now? (Y/n):"
  The landscape-config command can be used to change configuration options in 
/etc/landscape/client.conf and should default to No when running this command 
on a computer that is already registered to a Landscape server and that server 
doesn't change during that run of landscape-config.
  
  To reproduce:
  
  1) Install landscape-client package on computer.
  2) Run landscape-config to register client for the first time.
  3) Run landscape-config again to change an option:
  sudo landscape-config --ping-interval=60

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

Title:
  landscape-config new registration request prompt should default to no
  for subsequent runs

To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape-client/+bug/1618483/+subscriptions

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

Reply via email to