Send netdisco-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Netdisco docker upgrade (Josep Manel Andr?s Moscard?)
   2. Re: Netdisco docker upgrade (Oliver Gorwits)
   3. Re: Netdisco docker upgrade (Josep Manel Andr?s Moscard?)
   4. Re: Netdisco docker upgrade (Oliver Gorwits)
--- Begin Message ---
Hi,
I can see this executing netdisco-do from netdisco backend:

deploy@dock-test03:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES aa10cb0a2518 netdisco/netdisco:latest-backend "/home/netdisco/bi..." 11 minutes ago Up 11 minutes netdisco_netdisco-backend.1.jdq3ctbrx3nvwrf6mgk9aa29c 8161316bb364 imimsri/docker-unimus:v1.4.1 "/opt/start.sh" 4 weeks ago Up 4 weeks unimus_unimus.1.w8jra4ut1ce7v246j9bc3wlng
deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 bash
oci runtime error: exec failed: container_linux.go:265: starting container process caused "exec: \"bash\": executable file not found in $PATH"

deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 ash
~ $ netdisco-d
netdisco-daemon netdisco-daemon-fg netdisco-db-deploy netdisco-deploy netdisco-do
~ $ netdisco-d
netdisco-daemon netdisco-daemon-fg netdisco-db-deploy netdisco-deploy netdisco-do
~ $ netdisco-do  discover -d 10.99.10.11
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently unversioned. Please call upgrade on your schema to sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121 DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=netdisco;host=netdisco-postgresql','net-user',...) failed: FATAL: password authentication failed for user "net-user" at /home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1517. at /home/netdisco/perl5/lib/perl5/App/Netdisco/Util/Device.pm line 56




On 23/01/18 21:32, Oliver Gorwits wrote:
Hi Josep and Stephan (and others),

You can find initial docker images and instructions here:

https://store.docker.com/community/images/netdisco/netdisco

good luck! and please do let me know how you get on.

To those familiar with docker, I would appreciate feedback as well, as I'm new to this myself.

regards,
oliver.

On 2018-01-19 12:26, Stephan Grund wrote:
Hi Oliver, hi Josep,

this is just a small 'me too' mail. Currently we doesn't use docker in
our environment. But I'm setting up a kubernetes cluster and one of the
first services, that we want to migrate is netdisco.
So, I'm looking forward to your development.

Stephan

On 19.01.2018 13:20, Josep Manel Andrés Moscardó wrote:
Hi Oliver,

I am glad to test your new development, since we are running it on a docker swarm mode (cluster) I will need to rearrange the docker-compose.yml
Has anyone work on this already so I don't have to reinvent the wheel ?

Cheers.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

--
------------------------------------------------
Josep Manel Andrés Moscardó
System Administrator
IMIM-Hospital del Mar Research Institut



--- End Message ---
--- Begin Message ---
Hi Josep,

Many thanks for giving this a test!

From your other email I can see these log lines:

netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01 | FATAL: password authentication failed for user "net-user" netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01 | DETAIL: Role "net-user" does not exist. netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01 | Connection matched pg_hba.conf line 95: "host all all all md5"

Which suggests you have configured the container to use "net-user" instead of "netdisco" but that user does not have a role with a password in the database?

For the error below, can you send the output of the "env" command so we can see the environment variables set?

The app is attempting to contact a database at "('dbname=netdisco;host=netdisco-postgresql','net-user',...)" and is this what you want?

Do not worry about all the SQL errors when the database container starts up - this is the redeployment of the schema which is very noisy.

Thanks again,
Oliver.


On 2018-01-24 13:38, Josep Manel Andrés Moscardó wrote:
Hi,
I can see this executing netdisco-do from netdisco backend:

deploy@dock-test03:~$ docker ps
CONTAINER ID        IMAGE                              COMMAND
CREATED             STATUS              PORTS               NAMES
aa10cb0a2518        netdisco/netdisco:latest-backend
"/home/netdisco/bi..."   11 minutes ago      Up 11 minutes
netdisco_netdisco-backend.1.jdq3ctbrx3nvwrf6mgk9aa29c
8161316bb364        imimsri/docker-unimus:v1.4.1       "/opt/start.sh"
       4 weeks ago         Up 4 weeks
unimus_unimus.1.w8jra4ut1ce7v246j9bc3wlng
deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 bash
oci runtime error: exec failed: container_linux.go:265: starting
container process caused "exec: \"bash\": executable file not found in
$PATH"

deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 ash
~ $ netdisco-d
netdisco-daemon     netdisco-daemon-fg  netdisco-db-deploy
netdisco-deploy     netdisco-do
~ $ netdisco-d
netdisco-daemon     netdisco-daemon-fg  netdisco-db-deploy
netdisco-deploy     netdisco-do
~ $ netdisco-do  discover -d 10.99.10.11
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently
unversioned. Please call upgrade on your schema to sync the DB. at
/home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
connect('dbname=netdisco;host=netdisco-postgresql','net-user',...)
failed: FATAL:  password authentication failed for user "net-user" at
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1517. at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/Device.pm line 56




On 23/01/18 21:32, Oliver Gorwits wrote:
Hi Josep and Stephan (and others),

You can find initial docker images and instructions here:

https://store.docker.com/community/images/netdisco/netdisco

good luck! and please do let me know how you get on.

To those familiar with docker, I would appreciate feedback as well, as I'm new to this myself.

regards,
oliver.

On 2018-01-19 12:26, Stephan Grund wrote:
Hi Oliver, hi Josep,

this is just a small 'me too' mail. Currently we doesn't use docker in our environment. But I'm setting up a kubernetes cluster and one of the
first services, that we want to migrate is netdisco.
So, I'm looking forward to your development.

Stephan

On 19.01.2018 13:20, Josep Manel Andrés Moscardó wrote:
Hi Oliver,

I am glad to test your new development, since we are running it on a docker swarm mode (cluster) I will need to rearrange the docker-compose.yml Has anyone work on this already so I don't have to reinvent the wheel ?

Cheers.


------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users



--- End Message ---
--- Begin Message ---
I see...
So the error comes with the settings from my environment.yml. Which settings should I set there?

#
# NETDISCO 2 CONFIGURATION FILE
#
# Settings in this file override share/config.yml
# See App::Netdisco::Manual::Configuration for more info.

# ------------------
# ESSENTIAL SETTINGS
# ------------------

database:
  name: 'netdisco'
  user: 'netdisco'
  pass: 'sf23Gsgfs'
  host: 'netdisco-postgresql'



On 24/01/18 14:46, Oliver Gorwits wrote:
Hi Josep,

Many thanks for giving this a test!

 From your other email I can see these log lines:

netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01    | FATAL: password authentication failed for user "net-user" netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01    | DETAIL: Role "net-user" does not exist. netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01    | Connection matched pg_hba.conf line 95: "host all all all md5"

Which suggests you have configured the container to use "net-user" instead of "netdisco" but that user does not have a role with a password in the database?

For the error below, can you send the output of the "env" command so we can see the environment variables set?

here goes the error


^[[Adeploy@dock-test03:~$ docker exec -ti aa10cb0a2518 ash
~ $ env
HOSTNAME=aa10cb0a2518
SHLVL=1
NETDISCO_DOMAIN=discover
HOME=/home/netdisco
TERM=xterm
PATH=/home/netdisco/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SHELL=/bin/ash
PWD=/home/netdisco
NETDISCO_DB_HOST=netdisco-postgresql



The app is attempting to contact a database at "('dbname=netdisco;host=netdisco-postgresql','net-user',...)" and is this what you want?

Do not worry about all the SQL errors when the database container starts up - this is the redeployment of the schema which is very noisy.

Thanks again,
Oliver.


On 2018-01-24 13:38, Josep Manel Andrés Moscardó wrote:
Hi,
I can see this executing netdisco-do from netdisco backend:

deploy@dock-test03:~$ docker ps
CONTAINER ID        IMAGE                              COMMAND
CREATED             STATUS              PORTS               NAMES
aa10cb0a2518        netdisco/netdisco:latest-backend
"/home/netdisco/bi..."   11 minutes ago      Up 11 minutes
netdisco_netdisco-backend.1.jdq3ctbrx3nvwrf6mgk9aa29c
8161316bb364        imimsri/docker-unimus:v1.4.1       "/opt/start.sh"
       4 weeks ago         Up 4 weeks
unimus_unimus.1.w8jra4ut1ce7v246j9bc3wlng
deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 bash
oci runtime error: exec failed: container_linux.go:265: starting
container process caused "exec: \"bash\": executable file not found in
$PATH"

deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 ash
~ $ netdisco-d
netdisco-daemon     netdisco-daemon-fg  netdisco-db-deploy
netdisco-deploy     netdisco-do
~ $ netdisco-d
netdisco-daemon     netdisco-daemon-fg  netdisco-db-deploy
netdisco-deploy     netdisco-do
~ $ netdisco-do  discover -d 10.99.10.11
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently
unversioned. Please call upgrade on your schema to sync the DB. at
/home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
connect('dbname=netdisco;host=netdisco-postgresql','net-user',...)
failed: FATAL:  password authentication failed for user "net-user" at
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1517. at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/Device.pm line 56




On 23/01/18 21:32, Oliver Gorwits wrote:
Hi Josep and Stephan (and others),

You can find initial docker images and instructions here:

https://store.docker.com/community/images/netdisco/netdisco

good luck! and please do let me know how you get on.

To those familiar with docker, I would appreciate feedback as well, as I'm new to this myself.

regards,
oliver.

On 2018-01-19 12:26, Stephan Grund wrote:
Hi Oliver, hi Josep,

this is just a small 'me too' mail. Currently we doesn't use docker in
our environment. But I'm setting up a kubernetes cluster and one of the
first services, that we want to migrate is netdisco.
So, I'm looking forward to your development.

Stephan

On 19.01.2018 13:20, Josep Manel Andrés Moscardó wrote:
Hi Oliver,

I am glad to test your new development, since we are running it on a docker swarm mode (cluster) I will need to rearrange the docker-compose.yml Has anyone work on this already so I don't have to reinvent the wheel ?

Cheers.


------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

--
------------------------------------------------
Josep Manel Andrés Moscardó
System Administrator
IMIM-Hospital del Mar Research Institut



--- End Message ---
--- Begin Message ---
Hi Josep

On 2018-01-24 15:29, Josep Manel Andrés Moscardó wrote:
I see...
So the error comes with the settings from my environment.yml. Which
settings should I set there?

This could be a conflict between the deployment.yml file and the defaults from your environment. Can you try setting the database name/user/pass/host in the environment?

https://github.com/netdisco/netdisco/wiki/Environment-Variables

regards,
oliver.


#
# NETDISCO 2 CONFIGURATION FILE
#
# Settings in this file override share/config.yml
# See App::Netdisco::Manual::Configuration for more info.

# ------------------
# ESSENTIAL SETTINGS
# ------------------

database:
  name: 'netdisco'
  user: 'netdisco'
  pass: 'sf23Gsgfs'
  host: 'netdisco-postgresql'



On 24/01/18 14:46, Oliver Gorwits wrote:
Hi Josep,

Many thanks for giving this a test!

 From your other email I can see these log lines:

netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01    | FATAL: password authentication failed for user "net-user" netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01    | DETAIL: Role "net-user" does not exist. netdisco_netdisco-postgresql.1.mpgky297s3lk@dock-test01    | Connection matched pg_hba.conf line 95: "host all all all md5"

Which suggests you have configured the container to use "net-user" instead of "netdisco" but that user does not have a role with a password in the database?

For the error below, can you send the output of the "env" command so we can see the environment variables set?

here goes the error


^[[Adeploy@dock-test03:~$ docker exec -ti aa10cb0a2518 ash
~ $ env
HOSTNAME=aa10cb0a2518
SHLVL=1
NETDISCO_DOMAIN=discover
HOME=/home/netdisco
TERM=xterm
PATH=/home/netdisco/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SHELL=/bin/ash
PWD=/home/netdisco
NETDISCO_DB_HOST=netdisco-postgresql



The app is attempting to contact a database at "('dbname=netdisco;host=netdisco-postgresql','net-user',...)" and is this what you want?

Do not worry about all the SQL errors when the database container starts up - this is the redeployment of the schema which is very noisy.

Thanks again,
Oliver.


On 2018-01-24 13:38, Josep Manel Andrés Moscardó wrote:
Hi,
I can see this executing netdisco-do from netdisco backend:

deploy@dock-test03:~$ docker ps
CONTAINER ID        IMAGE                              COMMAND
CREATED             STATUS              PORTS               NAMES
aa10cb0a2518        netdisco/netdisco:latest-backend
"/home/netdisco/bi..."   11 minutes ago      Up 11 minutes
netdisco_netdisco-backend.1.jdq3ctbrx3nvwrf6mgk9aa29c
8161316bb364        imimsri/docker-unimus:v1.4.1       "/opt/start.sh"
       4 weeks ago         Up 4 weeks
unimus_unimus.1.w8jra4ut1ce7v246j9bc3wlng
deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 bash
oci runtime error: exec failed: container_linux.go:265: starting
container process caused "exec: \"bash\": executable file not found in
$PATH"

deploy@dock-test03:~$ docker exec -ti aa10cb0a2518 ash
~ $ netdisco-d
netdisco-daemon     netdisco-daemon-fg  netdisco-db-deploy
netdisco-deploy     netdisco-do
~ $ netdisco-d
netdisco-daemon     netdisco-daemon-fg  netdisco-db-deploy
netdisco-deploy     netdisco-do
~ $ netdisco-do  discover -d 10.99.10.11
DBIx::Class::Schema::Versioned::_on_connect(): Your DB is currently
unversioned. Please call upgrade on your schema to sync the DB. at
/home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
connect('dbname=netdisco;host=netdisco-postgresql','net-user',...)
failed: FATAL:  password authentication failed for user "net-user" at
/home/netdisco/perl5/lib/perl5/DBIx/Class/Storage/DBI.pm line 1517. at
/home/netdisco/perl5/lib/perl5/App/Netdisco/Util/Device.pm line 56




On 23/01/18 21:32, Oliver Gorwits wrote:
Hi Josep and Stephan (and others),

You can find initial docker images and instructions here:

https://store.docker.com/community/images/netdisco/netdisco

good luck! and please do let me know how you get on.

To those familiar with docker, I would appreciate feedback as well, as I'm new to this myself.

regards,
oliver.

On 2018-01-19 12:26, Stephan Grund wrote:
Hi Oliver, hi Josep,

this is just a small 'me too' mail. Currently we doesn't use docker in our environment. But I'm setting up a kubernetes cluster and one of the
first services, that we want to migrate is netdisco.
So, I'm looking forward to your development.

Stephan

On 19.01.2018 13:20, Josep Manel Andrés Moscardó wrote:
Hi Oliver,

I am glad to test your new development, since we are running it on a docker swarm mode (cluster) I will need to rearrange the docker-compose.yml Has anyone work on this already so I don't have to reinvent the wheel ?

Cheers.


------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users



--- End Message ---
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to