Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed for Issue#1089 #1092

Merged
merged 2 commits into from
Jul 31, 2018
Merged

Fixed for Issue#1089 #1092

merged 2 commits into from
Jul 31, 2018

Conversation

yosukehara
Copy link
Member

I've confirmed that LeoGateway is properly killing the process itself when LeoManager nodes' IP address are incorrectly configured.

Error Log:

[E]	gateway_0@127.0.0.1	2018-07-31 13:31:44.696972 +0900	1533011504	
	leo_gateway_app:after_process_0/1	242	
	[{cause,connection_failure},
	 {error_nodes,['[email protected]']}]

LeoFS' Processes and the result of leofs-adm status:

$ ps aux | grep beam.smp | grep leo_
yosuke    3365  0.7  1.6 3953536 67912 pts/2   Ssl+ 13:30   0:02 /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_0/erts-9.3.3/bin/beam.smp -A 32 -K true -P 1048576 -- -root /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_0 -progname leo_manager -- -home /home/yosuke -- -heart -boot /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_0/releases/1/leo_manager -mode embedded -config /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_0/etc/app.config -config ./snmp/snmpa_manager_0/leo_manager_snmp -smp enable -setcookie 401321b4 -name [email protected] -- console
yosuke    3808  0.7  1.6 3952000 68444 pts/3   Ssl+ 13:30   0:02 /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_1/erts-9.3.3/bin/beam.smp -A 32 -K true -P 1048576 -- -root /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_1 -progname leo_manager -- -home /home/yosuke -- -heart -boot /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_1/releases/1/leo_manager -mode embedded -config /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_manager_1/etc/app.config -config ./snmp/snmpa_manager_1/leo_manager_snmp -hidden -smp enable -setcookie 401321b4 -name [email protected] -- console
yosuke    4253  1.6  1.6 3933204 65836 pts/4   Ssl+ 13:30   0:05 /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_storage/erts-9.3.3/bin/beam.smp -secio true -zdbbl 32768 -scl true -A 32 -K true -P 1048576 -- -root /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_storage -progname leo_storage -- -home /home/yosuke -- -heart -boot /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_storage/releases/1/leo_storage -mode minimal -config /home/yosuke/dev/projects/leo-project/private/y05uk-dev-leofs/package/leo_storage/etc/app.config -config ./snmp/snmpa_storage_0/leo_storage_snmp -smp enable -setcookie 401321b4 -name [email protected] -- console

$ ./leofs-adm status
 [System Confiuration]
-----------------------------------+----------
 Item                              | Value
-----------------------------------+----------
 Basic/Consistency level
-----------------------------------+----------
                    system version | 1.4.2
                        cluster Id | leofs_1
                             DC Id | dc_1
                    Total replicas | 1
          number of successes of R | 1
          number of successes of W | 1
          number of successes of D | 1
 number of rack-awareness replicas | 0
                         ring size | 2^128
-----------------------------------+----------
 Multi DC replication settings
-----------------------------------+----------
 [mdcr] max number of joinable DCs | 2
 [mdcr] total replicas per a DC    | 1
 [mdcr] number of successes of R   | 1
 [mdcr] number of successes of W   | 1
 [mdcr] number of successes of D   | 1
-----------------------------------+----------
 Manager RING hash
-----------------------------------+----------
                 current ring-hash | 433fe365
                previous ring-hash | 433fe365
-----------------------------------+----------

 [State of Node(s)]
-------+--------------------------+--------------+---------+----------------+----------------+----------------------------
 type  |           node           |    state     | rack id |  current ring  |   prev ring    |          updated at
-------+--------------------------+--------------+---------+----------------+----------------+----------------------------
  S    | [email protected]      | running      |         | 433fe365       | 433fe365       | 2018-07-31 13:31:05 +0900
-------+--------------------------+--------------+---------+----------------+----------------+----------------------------

@mocchira
Copy link
Member

LGTM. I'll merge once the all tests get passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants