2024-09-06 14:06:49,544 - INFO - Domain Default found not creating
2024-09-06 14:06:49,711 - INFO - Project ctest-TestBasicPolicy-56662183 not found, creating it
2024-09-06 14:06:50,207 - INFO - Created Project:ctest-TestBasicPolicy-56662183, ID : eb384f65-446d-495c-bcda-ef636390ce2d
2024-09-06 14:06:52,225 - INFO - ================================================================================
2024-09-06 14:06:52,226 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-06 14:06:52,226 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-06 14:06:52,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with
2024-09-06 14:06:52,481 - INFO - Initial checks done. Running the testcase now
2024-09-06 14:06:52,481 - INFO -
2024-09-06 14:06:53,100 - DEBUG - Response for create_network : {'network': {'id': '6d997382-2a24-443b-8991-2c07131da7f6', 'name': 'ctest-vn-69109183', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-69109183'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 14:06:53,351 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f65a3099-1657-4281-af5e-54e22586dbcc', 'name': '', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'network_id': '6d997382-2a24-443b-8991-2c07131da7f6', 'ip_version': 4, 'cidr': '91.85.224.0/26', 'allocation_pools': [{'start': '91.85.224.2', 'end': '91.85.224.62'}], 'gateway_ip': '91.85.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.85.224.2', 'tags': [], 'project_id': 'eb384f65446d495cbcdaef636390ce2d'}}
2024-09-06 14:06:53,374 - INFO - Created VN ctest-vn-69109183
2024-09-06 14:06:53,426 - DEBUG - VN ctest-vn-69109183 UUID is 6d997382-2a24-443b-8991-2c07131da7f6
2024-09-06 14:06:53,736 - DEBUG - Response for create_network : {'network': {'id': 'e414186d-e03a-4972-a4d0-845bde014f9f', 'name': 'ctest-vn-68659767', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-68659767'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 14:06:53,903 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a37d9104-92ae-4bc4-b047-f4774cd30fb0', 'name': '', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'network_id': 'e414186d-e03a-4972-a4d0-845bde014f9f', 'ip_version': 4, 'cidr': '196.72.77.192/26', 'allocation_pools': [{'start': '196.72.77.194', 'end': '196.72.77.254'}], 'gateway_ip': '196.72.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.72.77.194', 'tags': [], 'project_id': 'eb384f65446d495cbcdaef636390ce2d'}}
2024-09-06 14:06:53,925 - INFO - Created VN ctest-vn-68659767
2024-09-06 14:06:53,978 - DEBUG - VN ctest-vn-68659767 UUID is e414186d-e03a-4972-a4d0-845bde014f9f
2024-09-06 14:06:54,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-06 14:06:54,416 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d997382-2a24-443b-8991-2c07131da7f6', 'name': 'ctest-vn-69109183', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f65a3099-1657-4281-af5e-54e22586dbcc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-69109183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911']], 'subnet_ipam': [{'subnet_cidr': '91.85.224.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 14:06:54,703 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e414186d-e03a-4972-a4d0-845bde014f9f', 'name': 'ctest-vn-68659767', 'tenant_id': 'eb384f65446d495cbcdaef636390ce2d', 'project_id': 'eb384f65446d495cbcdaef636390ce2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a37d9104-92ae-4bc4-b047-f4774cd30fb0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-vn-68659767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911']], 'subnet_ipam': [{'subnet_cidr': '196.72.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 14:06:54,858 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-06 14:06:55,168 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-06 14:06:55,205 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de
2024-09-06 14:06:55,224 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d
2024-09-06 14:06:55,301 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6
2024-09-06 14:06:55,311 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6
2024-09-06 14:06:55,321 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32
2024-09-06 14:06:55,328 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32
2024-09-06 14:06:55,338 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/00bec9fd-8f88-4fc5-8c90-9b9886557047
2024-09-06 14:06:55,347 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 14:06:55,347 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6
2024-09-06 14:06:55,357 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32
2024-09-06 14:06:55,374 - INFO - Verified VN network id 8 for VN 6d997382-2a24-443b-8991-2c07131da7f6
2024-09-06 14:06:55,374 - INFO - Verifications in API Server for VN ctest-vn-69109183 passed
2024-09-06 14:06:55,375 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6
2024-09-06 14:06:55,385 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32
2024-09-06 14:06:55,394 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/54700f04-3e5a-4779-a6d4-5a7a9d5fcd32
2024-09-06 14:06:55,402 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/00bec9fd-8f88-4fc5-8c90-9b9886557047
2024-09-06 14:06:55,423 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56662183', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7897470424460837947', 'uuid-lslong': '9912752663716276214'}, 'enable': 'true', 'created': '2024-09-06T14:06:53', 'last-modified': '2024-09-06T14:06:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035033'}
2024-09-06 14:06:55,431 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 14:06:55,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69109183 passed
2024-09-06 14:06:55,431 - DEBUG - ====Verifying policy data for ctest-vn-69109183 in API_Server ======
2024-09-06 14:06:55,432 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-06 14:06:55,440 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de
2024-09-06 14:06:55,454 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d
2024-09-06 14:06:55,526 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/6d997382-2a24-443b-8991-2c07131da7f6
2024-09-06 14:06:55,535 - DEBUG - ==>Verifying data for policy with id: d131eaa1-f619-42ec-bd39-e6db5bf71097, fqn: ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911']
2024-09-06 14:06:55,535 - INFO - VN ctest-vn-69109183 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 14:06:55,535 - DEBUG - Verifying the vn in opserver
2024-09-06 14:06:55,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183 virtual network link through opserver 10.0.0.42
2024-09-06 14:06:55,536 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-06 14:06:55,849 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-06 14:06:55,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183?flat'}
2024-09-06 14:06:55,921 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-69109183 is found in opserver
2024-09-06 14:06:55,933 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 14:06:55,942 - DEBUG - VRF ids for VN ctest-vn-69109183: {}
2024-09-06 14:06:55,942 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-06 14:06:55,949 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de
2024-09-06 14:06:55,961 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d
2024-09-06 14:06:56,032 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f
2024-09-06 14:06:56,044 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f
2024-09-06 14:06:56,052 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa
2024-09-06 14:06:56,058 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa
2024-09-06 14:06:56,065 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bf77969d-1d34-451c-9f1d-3f6729ef411b
2024-09-06 14:06:56,071 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 14:06:56,071 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f
2024-09-06 14:06:56,078 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa
2024-09-06 14:06:56,090 - INFO - Verified VN network id 9 for VN e414186d-e03a-4972-a4d0-845bde014f9f
2024-09-06 14:06:56,090 - INFO - Verifications in API Server for VN ctest-vn-68659767 passed
2024-09-06 14:06:56,090 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f
2024-09-06 14:06:56,100 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa
2024-09-06 14:06:56,106 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/eaf5c12e-a073-43af-9fba-a0cfe10225fa
2024-09-06 14:06:56,112 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/bf77969d-1d34-451c-9f1d-3f6729ef411b
2024-09-06 14:06:56,124 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56662183', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16434787800374200690', 'uuid-lslong': '11876137747477516191'}, 'enable': 'true', 'created': '2024-09-06T14:06:53', 'last-modified': '2024-09-06T14:06:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.495128'}
2024-09-06 14:06:56,130 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 14:06:56,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68659767 passed
2024-09-06 14:06:56,131 - DEBUG - ====Verifying policy data for ctest-vn-68659767 in API_Server ======
2024-09-06 14:06:56,131 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-09-06 14:06:56,137 - DEBUG - Requesting: http://10.0.0.42:8082/domain/04bdf0a0-df18-4588-867e-49e929cf72de
2024-09-06 14:06:56,149 - DEBUG - Requesting: http://10.0.0.42:8082/project/eb384f65-446d-495c-bcda-ef636390ce2d
2024-09-06 14:06:57,421 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e414186d-e03a-4972-a4d0-845bde014f9f
2024-09-06 14:06:57,431 - DEBUG - ==>Verifying data for policy with id: d131eaa1-f619-42ec-bd39-e6db5bf71097, fqn: ['default-domain', 'ctest-TestBasicPolicy-56662183', 'ctest-policy-allow-all-30637911']
2024-09-06 14:06:57,431 - INFO - VN ctest-vn-68659767 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 14:06:57,431 - DEBUG - Verifying the vn in opserver
2024-09-06 14:06:57,431 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767 virtual network link through opserver 10.0.0.42
2024-09-06 14:06:57,431 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-09-06 14:06:57,445 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767?flat'}
2024-09-06 14:06:57,445 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56662183:ctest-vn-68659767 is found in opserver
2024-09-06 14:06:57,459 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 14:06:57,467 - DEBUG - VRF ids for VN ctest-vn-68659767: {}
2024-09-06 14:06:57,546 - DEBUG - Services list from nova: [