2024-08-29 23:37:04,417 - INFO - Domain Default found not creating
2024-08-29 23:37:04,565 - INFO - Project ctest-TestBasicPolicy-10085516 not found, creating it
2024-08-29 23:37:05,025 - INFO - Created Project:ctest-TestBasicPolicy-10085516, ID : e1ada911-26ce-431c-b1b5-62795ca945aa
2024-08-29 23:37:06,496 - INFO - ================================================================================
2024-08-29 23:37:06,496 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 23:37:06,496 - 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-08-29 23:37:06,753 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.10': '0'}} with
2024-08-29 23:37:06,753 - INFO - Initial checks done. Running the testcase now
2024-08-29 23:37:06,753 - INFO -
2024-08-29 23:37:07,323 - DEBUG - Response for create_network : {'network': {'id': '21f2c8dd-1374-463f-9986-463382283a26', 'name': 'ctest-vn-72340067', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-72340067'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 23:37:07,507 - DEBUG - Response for create_subnet : {'subnet': {'id': '6276ba6a-c1c3-4ebb-8713-d2d15ca2b3ef', 'name': '', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'network_id': '21f2c8dd-1374-463f-9986-463382283a26', 'ip_version': 4, 'cidr': '91.161.24.64/26', 'allocation_pools': [{'start': '91.161.24.66', 'end': '91.161.24.126'}], 'gateway_ip': '91.161.24.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.161.24.66', 'tags': [], 'project_id': 'e1ada91126ce431cb1b562795ca945aa'}}
2024-08-29 23:37:07,527 - INFO - Created VN ctest-vn-72340067
2024-08-29 23:37:07,581 - DEBUG - VN ctest-vn-72340067 UUID is 21f2c8dd-1374-463f-9986-463382283a26
2024-08-29 23:37:08,084 - DEBUG - Response for create_network : {'network': {'id': '93b2cee8-99f2-47ab-8a71-e70dc7c0ac74', 'name': 'ctest-vn-14149813', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-14149813'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 23:37:08,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '70e3917d-1b98-4237-afa9-d68ecec73a74', 'name': '', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'network_id': '93b2cee8-99f2-47ab-8a71-e70dc7c0ac74', 'ip_version': 4, 'cidr': '67.199.174.192/26', 'allocation_pools': [{'start': '67.199.174.194', 'end': '67.199.174.254'}], 'gateway_ip': '67.199.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.199.174.194', 'tags': [], 'project_id': 'e1ada91126ce431cb1b562795ca945aa'}}
2024-08-29 23:37:08,279 - INFO - Created VN ctest-vn-14149813
2024-08-29 23:37:08,329 - DEBUG - VN ctest-vn-14149813 UUID is 93b2cee8-99f2-47ab-8a71-e70dc7c0ac74
2024-08-29 23:37:08,444 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067, 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-10085516:ctest-vn-14149813, 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-08-29 23:37:08,725 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21f2c8dd-1374-463f-9986-463382283a26', 'name': 'ctest-vn-72340067', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6276ba6a-c1c3-4ebb-8713-d2d15ca2b3ef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-72340067'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533']], 'subnet_ipam': [{'subnet_cidr': '91.161.24.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 23:37:08,961 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93b2cee8-99f2-47ab-8a71-e70dc7c0ac74', 'name': 'ctest-vn-14149813', 'tenant_id': 'e1ada91126ce431cb1b562795ca945aa', 'project_id': 'e1ada91126ce431cb1b562795ca945aa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70e3917d-1b98-4237-afa9-d68ecec73a74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-vn-14149813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533']], 'subnet_ipam': [{'subnet_cidr': '67.199.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 23:37:09,106 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-08-29 23:37:09,403 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-08-29 23:37:09,433 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e
2024-08-29 23:37:09,446 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa
2024-08-29 23:37:09,517 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26
2024-08-29 23:37:09,527 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26
2024-08-29 23:37:09,535 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216
2024-08-29 23:37:09,541 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216
2024-08-29 23:37:09,548 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cafde40f-bd90-40fc-ab20-a8b140f06d23
2024-08-29 23:37:09,553 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 23:37:09,553 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26
2024-08-29 23:37:09,561 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216
2024-08-29 23:37:09,572 - INFO - Verified VN network id 8 for VN 21f2c8dd-1374-463f-9986-463382283a26
2024-08-29 23:37:09,572 - INFO - Verifications in API Server for VN ctest-vn-72340067 passed
2024-08-29 23:37:09,572 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26
2024-08-29 23:37:09,580 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216
2024-08-29 23:37:09,586 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a88d3625-a1ce-45f5-8055-23b8bf631216
2024-08-29 23:37:09,593 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cafde40f-bd90-40fc-ab20-a8b140f06d23
2024-08-29 23:37:09,605 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10085516', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2446238399455315519', 'uuid-lslong': '11062606721723152934'}, 'enable': 'true', 'created': '2024-08-29T23:37:07', 'last-modified': '2024-08-29T23:37:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900208'}
2024-08-29 23:37:09,611 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 23:37:09,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72340067 passed
2024-08-29 23:37:09,611 - DEBUG - ====Verifying policy data for ctest-vn-72340067 in API_Server ======
2024-08-29 23:37:09,611 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-08-29 23:37:09,617 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e
2024-08-29 23:37:09,628 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa
2024-08-29 23:37:09,696 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/21f2c8dd-1374-463f-9986-463382283a26
2024-08-29 23:37:09,705 - DEBUG - ==>Verifying data for policy with id: 55e76098-f5e4-4a53-a7d2-fdd66120fc36, fqn: ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533']
2024-08-29 23:37:09,705 - INFO - VN ctest-vn-72340067 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 23:37:09,705 - DEBUG - Verifying the vn in opserver
2024-08-29 23:37:09,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067 virtual network link through opserver 10.0.0.22
2024-08-29 23:37:09,705 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-08-29 23:37:09,999 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-08-29 23:37:10,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067?flat'}
2024-08-29 23:37:10,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-72340067 is found in opserver
2024-08-29 23:37:10,075 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 23:37:10,081 - DEBUG - VRF ids for VN ctest-vn-72340067: {}
2024-08-29 23:37:10,081 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-08-29 23:37:10,087 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e
2024-08-29 23:37:10,098 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa
2024-08-29 23:37:10,170 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74
2024-08-29 23:37:10,181 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74
2024-08-29 23:37:10,189 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948
2024-08-29 23:37:10,196 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948
2024-08-29 23:37:10,202 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/23545792-9edd-4e14-bf01-7401a3cb497a
2024-08-29 23:37:10,209 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 23:37:10,209 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74
2024-08-29 23:37:10,217 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948
2024-08-29 23:37:10,230 - INFO - Verified VN network id 9 for VN 93b2cee8-99f2-47ab-8a71-e70dc7c0ac74
2024-08-29 23:37:10,230 - INFO - Verifications in API Server for VN ctest-vn-14149813 passed
2024-08-29 23:37:10,230 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74
2024-08-29 23:37:10,238 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948
2024-08-29 23:37:10,245 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c6d4202-4914-42be-a28a-886fd19a3948
2024-08-29 23:37:10,251 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/23545792-9edd-4e14-bf01-7401a3cb497a
2024-08-29 23:37:10,263 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10085516', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10642796367840429995', 'uuid-lslong': '9976008695974243444'}, 'enable': 'true', 'created': '2024-08-29T23:37:08', 'last-modified': '2024-08-29T23:37:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.322784'}
2024-08-29 23:37:10,270 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 23:37:10,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14149813 passed
2024-08-29 23:37:10,270 - DEBUG - ====Verifying policy data for ctest-vn-14149813 in API_Server ======
2024-08-29 23:37:10,270 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-08-29 23:37:10,276 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3ba35348-e5f3-448b-bd4e-0d15bb1cfd0e
2024-08-29 23:37:10,288 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1ada911-26ce-431c-b1b5-62795ca945aa
2024-08-29 23:37:10,356 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/93b2cee8-99f2-47ab-8a71-e70dc7c0ac74
2024-08-29 23:37:10,364 - DEBUG - ==>Verifying data for policy with id: 55e76098-f5e4-4a53-a7d2-fdd66120fc36, fqn: ['default-domain', 'ctest-TestBasicPolicy-10085516', 'ctest-policy-allow-all-78112533']
2024-08-29 23:37:10,364 - INFO - VN ctest-vn-14149813 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 23:37:10,364 - DEBUG - Verifying the vn in opserver
2024-08-29 23:37:10,364 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813 virtual network link through opserver 10.0.0.22
2024-08-29 23:37:10,364 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-08-29 23:37:10,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813?flat'}
2024-08-29 23:37:10,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10085516:ctest-vn-14149813 is found in opserver
2024-08-29 23:37:10,386 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 23:37:10,391 - DEBUG - VRF ids for VN ctest-vn-14149813: {}
2024-08-29 23:37:10,445 - DEBUG - Services list from nova: [