2024-09-03 13:52:09,129 - INFO - Domain Default found not creating
2024-09-03 13:52:09,290 - INFO - Project ctest-TestBasicPolicy-50622733 not found, creating it
2024-09-03 13:52:09,775 - INFO - Created Project:ctest-TestBasicPolicy-50622733, ID : fa69ff64-9b42-4caa-8465-2d55088aba50
2024-09-03 13:52:11,484 - INFO - ================================================================================
2024-09-03 13:52:11,485 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-03 13:52:11,485 - 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-03 13:52:11,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.6': '0'}} with
2024-09-03 13:52:11,740 - INFO - Initial checks done. Running the testcase now
2024-09-03 13:52:11,740 - INFO -
2024-09-03 13:52:12,306 - DEBUG - Response for create_network : {'network': {'id': 'c47dcee2-8fcb-430c-92a5-de446454f60a', 'name': 'ctest-vn-46236631', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-46236631'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 13:52:12,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b7c9f41-736d-4068-acfe-a44038d09027', 'name': '', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'network_id': 'c47dcee2-8fcb-430c-92a5-de446454f60a', 'ip_version': 4, 'cidr': '172.73.172.0/26', 'allocation_pools': [{'start': '172.73.172.2', 'end': '172.73.172.62'}], 'gateway_ip': '172.73.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.73.172.2', 'tags': [], 'project_id': 'fa69ff649b424caa84652d55088aba50'}}
2024-09-03 13:52:12,561 - INFO - Created VN ctest-vn-46236631
2024-09-03 13:52:12,615 - DEBUG - VN ctest-vn-46236631 UUID is c47dcee2-8fcb-430c-92a5-de446454f60a
2024-09-03 13:52:12,924 - DEBUG - Response for create_network : {'network': {'id': '8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0', 'name': 'ctest-vn-22569911', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-22569911'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 13:52:13,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '444e6eae-31f0-4184-8b35-777c374ee03a', 'name': '', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'network_id': '8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0', 'ip_version': 4, 'cidr': '61.145.4.0/26', 'allocation_pools': [{'start': '61.145.4.2', 'end': '61.145.4.62'}], 'gateway_ip': '61.145.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.145.4.2', 'tags': [], 'project_id': 'fa69ff649b424caa84652d55088aba50'}}
2024-09-03 13:52:13,157 - INFO - Created VN ctest-vn-22569911
2024-09-03 13:52:13,207 - DEBUG - VN ctest-vn-22569911 UUID is 8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0
2024-09-03 13:52:13,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631, 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-50622733:ctest-vn-22569911, 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-03 13:52:13,632 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c47dcee2-8fcb-430c-92a5-de446454f60a', 'name': 'ctest-vn-46236631', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b7c9f41-736d-4068-acfe-a44038d09027'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-46236631'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736']], 'subnet_ipam': [{'subnet_cidr': '172.73.172.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 13:52:13,869 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0', 'name': 'ctest-vn-22569911', 'tenant_id': 'fa69ff649b424caa84652d55088aba50', 'project_id': 'fa69ff649b424caa84652d55088aba50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['444e6eae-31f0-4184-8b35-777c374ee03a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-vn-22569911'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736']], 'subnet_ipam': [{'subnet_cidr': '61.145.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 13:52:14,019 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-03 13:52:14,318 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-03 13:52:14,348 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa
2024-09-03 13:52:14,362 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50
2024-09-03 13:52:14,433 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a
2024-09-03 13:52:14,445 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a
2024-09-03 13:52:14,456 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3
2024-09-03 13:52:14,465 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3
2024-09-03 13:52:14,474 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/de52f6cc-ab4d-4621-9885-f7c978b76988
2024-09-03 13:52:14,482 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 13:52:14,482 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a
2024-09-03 13:52:14,494 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3
2024-09-03 13:52:14,509 - INFO - Verified VN network id 9 for VN c47dcee2-8fcb-430c-92a5-de446454f60a
2024-09-03 13:52:14,509 - INFO - Verifications in API Server for VN ctest-vn-46236631 passed
2024-09-03 13:52:14,509 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a
2024-09-03 13:52:14,520 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3
2024-09-03 13:52:14,528 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/18adab34-b7f9-45a1-b653-618e46ed00e3
2024-09-03 13:52:14,536 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/de52f6cc-ab4d-4621-9885-f7c978b76988
2024-09-03 13:52:14,549 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50622733', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14158700275993101068', 'uuid-lslong': '10567096486017168906'}, 'enable': 'true', 'created': '2024-09-03T13:52:12', 'last-modified': '2024-09-03T13:52:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940991'}
2024-09-03 13:52:14,558 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 13:52:14,558 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46236631 passed
2024-09-03 13:52:14,558 - DEBUG - ====Verifying policy data for ctest-vn-46236631 in API_Server ======
2024-09-03 13:52:14,558 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-03 13:52:14,566 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa
2024-09-03 13:52:14,582 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50
2024-09-03 13:52:14,660 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/c47dcee2-8fcb-430c-92a5-de446454f60a
2024-09-03 13:52:14,671 - DEBUG - ==>Verifying data for policy with id: 760e1b9f-8abc-46a9-9d8d-75cd1872a6b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736']
2024-09-03 13:52:14,671 - INFO - VN ctest-vn-46236631 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 13:52:14,671 - DEBUG - Verifying the vn in opserver
2024-09-03 13:52:14,671 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631 virtual network link through opserver 10.0.0.32
2024-09-03 13:52:14,671 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-03 13:52:14,975 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-03 13:52:15,040 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631?flat'}
2024-09-03 13:52:15,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-46236631 is found in opserver
2024-09-03 13:52:15,053 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 13:52:15,059 - DEBUG - VRF ids for VN ctest-vn-46236631: {}
2024-09-03 13:52:15,059 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-03 13:52:15,066 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa
2024-09-03 13:52:15,080 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50
2024-09-03 13:52:15,153 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0
2024-09-03 13:52:15,165 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0
2024-09-03 13:52:15,174 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f
2024-09-03 13:52:15,181 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f
2024-09-03 13:52:15,189 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/13218347-48ba-4e66-9687-f968d518e3ba
2024-09-03 13:52:15,195 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 13:52:15,196 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0
2024-09-03 13:52:15,204 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f
2024-09-03 13:52:15,216 - INFO - Verified VN network id 10 for VN 8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0
2024-09-03 13:52:15,216 - INFO - Verifications in API Server for VN ctest-vn-22569911 passed
2024-09-03 13:52:15,216 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0
2024-09-03 13:52:15,225 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f
2024-09-03 13:52:15,231 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/e19899d9-1884-45d2-861c-996fb1d5143f
2024-09-03 13:52:15,237 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/13218347-48ba-4e66-9687-f968d518e3ba
2024-09-03 13:52:15,248 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50622733', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10203690951211830544', 'uuid-lslong': '11254296327218077392'}, 'enable': 'true', 'created': '2024-09-03T13:52:12', 'last-modified': '2024-09-03T13:52:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406446'}
2024-09-03 13:52:15,255 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 13:52:15,255 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22569911 passed
2024-09-03 13:52:15,255 - DEBUG - ====Verifying policy data for ctest-vn-22569911 in API_Server ======
2024-09-03 13:52:15,255 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-03 13:52:15,262 - DEBUG - Requesting: http://10.0.0.32:8082/domain/b6293951-ea4d-42d6-9489-76284ee495fa
2024-09-03 13:52:15,276 - DEBUG - Requesting: http://10.0.0.32:8082/project/fa69ff64-9b42-4caa-8465-2d55088aba50
2024-09-03 13:52:15,351 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8d9acadb-d0d9-4d10-9c2f-4ae1bcd11ed0
2024-09-03 13:52:15,361 - DEBUG - ==>Verifying data for policy with id: 760e1b9f-8abc-46a9-9d8d-75cd1872a6b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-50622733', 'ctest-policy-allow-all-23881736']
2024-09-03 13:52:15,361 - INFO - VN ctest-vn-22569911 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 13:52:15,361 - DEBUG - Verifying the vn in opserver
2024-09-03 13:52:15,361 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911 virtual network link through opserver 10.0.0.32
2024-09-03 13:52:15,361 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-03 13:52:15,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911?flat'}
2024-09-03 13:52:15,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50622733:ctest-vn-22569911 is found in opserver
2024-09-03 13:52:15,386 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 13:52:15,392 - DEBUG - VRF ids for VN ctest-vn-22569911: {}
2024-09-03 13:52:15,451 - DEBUG - Services list from nova: [