** Description changed:

  If you intsall postgresql via cloud-init user-data, it will not get started.
- A work around is provided at 
-   
http://dustymabe.com/2015/08/03/installingstarting-systemd-services-using-cloud-init/
+ A work around is provided at
+   
http://dustymabe.com/2015/08/03/installingstarting-systemd-services-using-cloud-init/
  
  This is related to bug 1575572.
+ This is related to bug 1576692.
  
  To reproduce the behavior:
  
- $ cat ../postgresql.yaml 
+ $ cat ../postgresql.yaml
  #cloud-config
  packages: [postgresql]
  
  $ launch ubuntu-daily:yakkety y2 "--config=user.user-data=$(cat
  postgresql.yaml)"
  
  $ lxc exec y2 /bin/bash
  # wait for system boot
  
  # systemctl status postgresql@9.5-main
  ● postgresql@9.5-main.service - PostgreSQL Cluster 9.5-main
-    Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor 
preset: enabled)
-    Active: inactive (dead)
+    Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor 
preset: enabled)
+    Active: inactive (dead)
  
  Related Bugs:
-  * bug 1575572:  apache2 fails to start if installed via cloud config (on 
Xenial)
+  * bug 1575572:  apache2 fails to start if installed via cloud config (on 
Xenial)
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.10
  Package: postgresql-common 175
  ProcVersionSignature: Ubuntu 4.4.0-33.52-generic 4.4.15
  Uname: Linux 4.4.0-33-generic x86_64
  ApportVersion: 2.20.3-0ubuntu5
  Architecture: amd64
  Date: Wed Aug 10 21:27:31 2016
  PackageArchitecture: all
  ProcEnviron:
-  TERM=screen.xterm-256color
-  PATH=(custom, no user)
+  TERM=screen.xterm-256color
+  PATH=(custom, no user)
  SourcePackage: postgresql-common
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to postgresql-common in Ubuntu.
https://bugs.launchpad.net/bugs/1611973

Title:
  postgresql@9.5-main service not started if postgres installed via
  cloud-init

Status in postgresql-common package in Ubuntu:
  Triaged

Bug description:
  If you intsall postgresql via cloud-init user-data, it will not get started.
  A work around is provided at
    
http://dustymabe.com/2015/08/03/installingstarting-systemd-services-using-cloud-init/

  This is related to bug 1575572.
  This is related to bug 1576692.

  To reproduce the behavior:

  $ cat ../postgresql.yaml
  #cloud-config
  packages: [postgresql]

  $ launch ubuntu-daily:yakkety y2 "--config=user.user-data=$(cat
  postgresql.yaml)"

  $ lxc exec y2 /bin/bash
  # wait for system boot

  # systemctl status postgresql@9.5-main
  ● postgresql@9.5-main.service - PostgreSQL Cluster 9.5-main
     Loaded: loaded (/lib/systemd/system/postgresql@.service; disabled; vendor 
preset: enabled)
     Active: inactive (dead)

  Related Bugs:
   * bug 1575572:  apache2 fails to start if installed via cloud config (on 
Xenial)

  ProblemType: Bug
  DistroRelease: Ubuntu 16.10
  Package: postgresql-common 175
  ProcVersionSignature: Ubuntu 4.4.0-33.52-generic 4.4.15
  Uname: Linux 4.4.0-33-generic x86_64
  ApportVersion: 2.20.3-0ubuntu5
  Architecture: amd64
  Date: Wed Aug 10 21:27:31 2016
  PackageArchitecture: all
  ProcEnviron:
   TERM=screen.xterm-256color
   PATH=(custom, no user)
  SourcePackage: postgresql-common
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1611973/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to