2024-09-04 23:18:54,723 - INFO - Domain Default found not creating
2024-09-04 23:18:55,122 - INFO - Project ctest-TestBasicPolicy-48005697 not found, creating it
2024-09-04 23:18:55,697 - INFO - Created Project:ctest-TestBasicPolicy-48005697, ID : 53abf12e-42ac-4cd6-81ab-fdf3a2857d30
2024-09-04 23:18:58,052 - INFO - ================================================================================
2024-09-04 23:18:58,052 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 23:18:58,053 - 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-04 23:18:58,361 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.5': '0'}} with
2024-09-04 23:18:58,362 - INFO - Initial checks done. Running the testcase now
2024-09-04 23:18:58,362 - INFO -
2024-09-04 23:18:59,194 - DEBUG - Response for create_network : {'network': {'id': 'e231ec7b-0349-4c39-8d2f-84d7b511165b', 'name': 'ctest-vn-65252943', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-65252943'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:18:59,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '45f3a90c-be20-4748-9ac5-fa41c75f3f0a', 'name': '', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'network_id': 'e231ec7b-0349-4c39-8d2f-84d7b511165b', 'ip_version': 4, 'cidr': '221.248.34.128/26', 'allocation_pools': [{'start': '221.248.34.130', 'end': '221.248.34.190'}], 'gateway_ip': '221.248.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.248.34.130', 'tags': [], 'project_id': '53abf12e42ac4cd681abfdf3a2857d30'}}
2024-09-04 23:18:59,530 - INFO - Created VN ctest-vn-65252943
2024-09-04 23:18:59,604 - DEBUG - VN ctest-vn-65252943 UUID is e231ec7b-0349-4c39-8d2f-84d7b511165b
2024-09-04 23:19:00,159 - DEBUG - Response for create_network : {'network': {'id': 'cb7b6680-890a-4f70-a7b8-14361cfcdbd3', 'name': 'ctest-vn-59826924', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-59826924'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:19:00,412 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd250aab-09b9-4c05-9df6-a2cf718db311', 'name': '', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'network_id': 'cb7b6680-890a-4f70-a7b8-14361cfcdbd3', 'ip_version': 4, 'cidr': '65.154.231.0/26', 'allocation_pools': [{'start': '65.154.231.2', 'end': '65.154.231.62'}], 'gateway_ip': '65.154.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.154.231.2', 'tags': [], 'project_id': '53abf12e42ac4cd681abfdf3a2857d30'}}
2024-09-04 23:19:00,470 - INFO - Created VN ctest-vn-59826924
2024-09-04 23:19:00,531 - DEBUG - VN ctest-vn-59826924 UUID is cb7b6680-890a-4f70-a7b8-14361cfcdbd3
2024-09-04 23:19:00,732 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943, 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-48005697:ctest-vn-59826924, 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-04 23:19:01,171 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e231ec7b-0349-4c39-8d2f-84d7b511165b', 'name': 'ctest-vn-65252943', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45f3a90c-be20-4748-9ac5-fa41c75f3f0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-65252943'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482']], 'subnet_ipam': [{'subnet_cidr': '221.248.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:19:01,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb7b6680-890a-4f70-a7b8-14361cfcdbd3', 'name': 'ctest-vn-59826924', 'tenant_id': '53abf12e42ac4cd681abfdf3a2857d30', 'project_id': '53abf12e42ac4cd681abfdf3a2857d30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd250aab-09b9-4c05-9df6-a2cf718db311'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-vn-59826924'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482']], 'subnet_ipam': [{'subnet_cidr': '65.154.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 23:19:01,635 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-04 23:19:01,972 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-04 23:19:02,025 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9
2024-09-04 23:19:02,087 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30
2024-09-04 23:19:02,170 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b
2024-09-04 23:19:02,186 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b
2024-09-04 23:19:02,198 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700
2024-09-04 23:19:02,207 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700
2024-09-04 23:19:02,221 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/2c698ede-6ef9-40e8-a5d5-1c99be878fcc
2024-09-04 23:19:02,228 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 23:19:02,228 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b
2024-09-04 23:19:02,237 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700
2024-09-04 23:19:02,251 - INFO - Verified VN network id 8 for VN e231ec7b-0349-4c39-8d2f-84d7b511165b
2024-09-04 23:19:02,252 - INFO - Verifications in API Server for VN ctest-vn-65252943 passed
2024-09-04 23:19:02,252 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b
2024-09-04 23:19:02,263 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700
2024-09-04 23:19:02,273 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d0e1a111-14e3-4116-9566-72a47621f700
2024-09-04 23:19:02,284 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/2c698ede-6ef9-40e8-a5d5-1c99be878fcc
2024-09-04 23:19:02,301 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48005697', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16299068539510803513', 'uuid-lslong': '10173496145243870811'}, 'enable': 'true', 'created': '2024-09-04T23:18:59', 'last-modified': '2024-09-04T23:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.170320'}
2024-09-04 23:19:02,310 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 23:19:02,310 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65252943 passed
2024-09-04 23:19:02,311 - DEBUG - ====Verifying policy data for ctest-vn-65252943 in API_Server ======
2024-09-04 23:19:02,311 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-04 23:19:02,319 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9
2024-09-04 23:19:02,338 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30
2024-09-04 23:19:02,430 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e231ec7b-0349-4c39-8d2f-84d7b511165b
2024-09-04 23:19:02,448 - DEBUG - ==>Verifying data for policy with id: b7a2db9a-208d-4c45-b025-344f2e80fecc, fqn: ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482']
2024-09-04 23:19:02,448 - INFO - VN ctest-vn-65252943 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 23:19:02,448 - DEBUG - Verifying the vn in opserver
2024-09-04 23:19:02,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943 virtual network link through opserver 10.0.0.28
2024-09-04 23:19:02,449 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-04 23:19:02,806 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-04 23:19:02,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943?flat'}
2024-09-04 23:19:02,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-65252943 is found in opserver
2024-09-04 23:19:02,975 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 23:19:02,994 - DEBUG - VRF ids for VN ctest-vn-65252943: {}
2024-09-04 23:19:02,994 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-04 23:19:03,017 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9
2024-09-04 23:19:03,041 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30
2024-09-04 23:19:03,149 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3
2024-09-04 23:19:03,172 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3
2024-09-04 23:19:03,197 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab
2024-09-04 23:19:03,219 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab
2024-09-04 23:19:03,241 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/50f0c7d0-8111-4d3f-a747-02755cf499d2
2024-09-04 23:19:03,260 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 23:19:03,260 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3
2024-09-04 23:19:03,284 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab
2024-09-04 23:19:03,322 - INFO - Verified VN network id 9 for VN cb7b6680-890a-4f70-a7b8-14361cfcdbd3
2024-09-04 23:19:03,323 - INFO - Verifications in API Server for VN ctest-vn-59826924 passed
2024-09-04 23:19:03,323 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3
2024-09-04 23:19:03,344 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab
2024-09-04 23:19:03,360 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d865118c-0a7f-4dee-8655-9b847cb5d0ab
2024-09-04 23:19:03,381 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/50f0c7d0-8111-4d3f-a747-02755cf499d2
2024-09-04 23:19:03,417 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48005697', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14662425714075783024', 'uuid-lslong': '12085431822695848915'}, 'enable': 'true', 'created': '2024-09-04T23:19:00', 'last-modified': '2024-09-04T23:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.976917'}
2024-09-04 23:19:03,434 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 23:19:03,434 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59826924 passed
2024-09-04 23:19:03,435 - DEBUG - ====Verifying policy data for ctest-vn-59826924 in API_Server ======
2024-09-04 23:19:03,435 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-04 23:19:03,452 - DEBUG - Requesting: http://10.0.0.28:8082/domain/a87246bd-bf12-4d0d-8deb-82b8ce51ffe9
2024-09-04 23:19:03,476 - DEBUG - Requesting: http://10.0.0.28:8082/project/53abf12e-42ac-4cd6-81ab-fdf3a2857d30
2024-09-04 23:19:03,580 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cb7b6680-890a-4f70-a7b8-14361cfcdbd3
2024-09-04 23:19:03,599 - DEBUG - ==>Verifying data for policy with id: b7a2db9a-208d-4c45-b025-344f2e80fecc, fqn: ['default-domain', 'ctest-TestBasicPolicy-48005697', 'ctest-policy-allow-all-58780482']
2024-09-04 23:19:03,600 - INFO - VN ctest-vn-59826924 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 23:19:03,600 - DEBUG - Verifying the vn in opserver
2024-09-04 23:19:03,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924 virtual network link through opserver 10.0.0.28
2024-09-04 23:19:03,600 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-04 23:19:03,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924?flat'}
2024-09-04 23:19:03,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48005697:ctest-vn-59826924 is found in opserver
2024-09-04 23:19:03,645 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 23:19:03,655 - DEBUG - VRF ids for VN ctest-vn-59826924: {}
2024-09-04 23:19:03,769 - DEBUG - Services list from nova: [