Skip to content

added an option for https introspect#7

Open
tnaganawa wants to merge 1 commit intovcheny:masterfrom
tnaganawa:no_ssl_verify
Open

added an option for https introspect#7
tnaganawa wants to merge 1 commit intovcheny:masterfrom
tnaganawa:no_ssl_verify

Conversation

@tnaganawa
Copy link
Contributor

change to ignore ssl certificate error, when https introspect is used.

 - w/o this option

[root@ip-172-31-15-94 ~]# python3 ist.py ctr status
Failed to reach destination
URL: http://127.0.0.1:8083/Snh_SandeshUVECacheReq?tname=NodeStatus
Reason:  ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

[root@ip-172-31-15-94 ~]# python2 ist.py ctr status
Failed to reach destination
URL: http://127.0.0.1:8083/Snh_SandeshUVECacheReq?tname=NodeStatus
('Reason: ', ConnectionError(ProtocolError('Connection aborted.', BadStatusLine("''",)),))
[root@ip-172-31-15-94 ~]#


- w/ this option

[root@ip-172-31-15-94 ~]# python3 ist.py --ssl-enable ctr status
/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,
module_id: contrail-control
state: Functional
description
+-----------+-----------+---------------------+--------+----------------------------------+
| type      | name      | server_addrs        | status | description                      |
+-----------+-----------+---------------------+--------+----------------------------------+
| Collector | n/a       |   172.31.15.94:8086 | Up     | Established                      |
| Database  | Cassandra |   172.31.15.94:9041 | Up     | Established Cassandra connection |
| Database  | RabbitMQ  |   172.31.15.94:5673 | Up     | RabbitMQ connection established  |
+-----------+-----------+---------------------+--------+----------------------------------+
[root@ip-172-31-15-94 ~]# 
[root@ip-172-31-15-94 ~]# 
[root@ip-172-31-15-94 ~]# 
[root@ip-172-31-15-94 ~]# python ist.py --ssl-enable ctr status
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
module_id: contrail-control
state: Functional
description
+-----------+-----------+---------------------+--------+----------------------------------+
| type      | name      | server_addrs        | status | description                      |
+-----------+-----------+---------------------+--------+----------------------------------+
| Collector | n/a       |   172.31.15.94:8086 | Up     | Established                      |
| Database  | Cassandra |   172.31.15.94:9041 | Up     | Established Cassandra connection |
| Database  | RabbitMQ  |   172.31.15.94:5673 | Up     | RabbitMQ connection established  |
+-----------+-----------+---------------------+--------+----------------------------------+
[root@ip-172-31-15-94 ~]#

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.

1 participant