2025-04-13 10:26:57,087 - INFO - Domain Default found not creating
2025-04-13 10:26:57,224 - INFO - Project ctest-TestBasicPolicy-46943356 not found, creating it
2025-04-13 10:26:57,683 - INFO - Created Project:ctest-TestBasicPolicy-46943356, ID : 65494425-4fac-4546-9f05-c875fbb4eaa3
2025-04-13 10:26:59,226 - INFO - ================================================================================
2025-04-13 10:26:59,226 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-13 10:26:59,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
2025-04-13 10:26:59,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-13 10:26:59,481 - INFO - Initial checks done. Running the testcase now
2025-04-13 10:26:59,481 - INFO -
2025-04-13 10:27:00,015 - DEBUG - Response for create_network : {'network': {'id': '679312ba-82d0-4cd8-ad6d-b8b3d9c98342', 'name': 'ctest-vn-01414796', 'tenant_id': '654944254fac45469f05c875fbb4eaa3', 'project_id': '654944254fac45469f05c875fbb4eaa3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-vn-01414796'], 'port_security_enabled': True, 'description': ''}}
2025-04-13 10:27:00,210 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef781f04-f369-4575-bf0c-22643ec3bc40', 'name': '', 'tenant_id': '654944254fac45469f05c875fbb4eaa3', 'network_id': '679312ba-82d0-4cd8-ad6d-b8b3d9c98342', 'ip_version': 4, 'cidr': '156.93.68.64/26', 'allocation_pools': [{'start': '156.93.68.66', 'end': '156.93.68.126'}], 'gateway_ip': '156.93.68.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.93.68.66', 'tags': [], 'project_id': '654944254fac45469f05c875fbb4eaa3'}}
2025-04-13 10:27:00,230 - INFO - Created VN ctest-vn-01414796
2025-04-13 10:27:00,284 - DEBUG - VN ctest-vn-01414796 UUID is 679312ba-82d0-4cd8-ad6d-b8b3d9c98342
2025-04-13 10:27:00,590 - DEBUG - Response for create_network : {'network': {'id': '23392f88-1c9b-473c-a102-6c045c59744b', 'name': 'ctest-vn-78070308', 'tenant_id': '654944254fac45469f05c875fbb4eaa3', 'project_id': '654944254fac45469f05c875fbb4eaa3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-vn-78070308'], 'port_security_enabled': True, 'description': ''}}
2025-04-13 10:27:00,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '99601b3d-5021-4c1a-8486-7ba412a1b335', 'name': '', 'tenant_id': '654944254fac45469f05c875fbb4eaa3', 'network_id': '23392f88-1c9b-473c-a102-6c045c59744b', 'ip_version': 4, 'cidr': '71.146.255.64/26', 'allocation_pools': [{'start': '71.146.255.66', 'end': '71.146.255.126'}], 'gateway_ip': '71.146.255.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.146.255.66', 'tags': [], 'project_id': '654944254fac45469f05c875fbb4eaa3'}}
2025-04-13 10:27:00,783 - INFO - Created VN ctest-vn-78070308
2025-04-13 10:27:00,836 - DEBUG - VN ctest-vn-78070308 UUID is 23392f88-1c9b-473c-a102-6c045c59744b
2025-04-13 10:27:00,965 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-01414796, 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-46943356:ctest-vn-78070308, 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]
2025-04-13 10:27:01,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '679312ba-82d0-4cd8-ad6d-b8b3d9c98342', 'name': 'ctest-vn-01414796', 'tenant_id': '654944254fac45469f05c875fbb4eaa3', 'project_id': '654944254fac45469f05c875fbb4eaa3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef781f04-f369-4575-bf0c-22643ec3bc40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-vn-01414796'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-policy-allow-all-94933404']], 'subnet_ipam': [{'subnet_cidr': '156.93.68.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-13 10:27:01,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23392f88-1c9b-473c-a102-6c045c59744b', 'name': 'ctest-vn-78070308', 'tenant_id': '654944254fac45469f05c875fbb4eaa3', 'project_id': '654944254fac45469f05c875fbb4eaa3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99601b3d-5021-4c1a-8486-7ba412a1b335'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-vn-78070308'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-policy-allow-all-94933404']], 'subnet_ipam': [{'subnet_cidr': '71.146.255.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-13 10:27:01,712 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 10:27:02,010 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 10:27:02,039 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1250dcde-ae73-4788-ad0a-84d56019fbae
2025-04-13 10:27:02,053 - DEBUG - Requesting: http://10.0.0.254:8082/project/65494425-4fac-4546-9f05-c875fbb4eaa3
2025-04-13 10:27:02,127 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/679312ba-82d0-4cd8-ad6d-b8b3d9c98342
2025-04-13 10:27:02,139 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/679312ba-82d0-4cd8-ad6d-b8b3d9c98342
2025-04-13 10:27:02,150 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3ce887e-f227-40a6-9526-e8c9734db10a
2025-04-13 10:27:02,158 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3ce887e-f227-40a6-9526-e8c9734db10a
2025-04-13 10:27:02,166 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ef7f6de-05c5-4ecd-89f0-119809aec3fa
2025-04-13 10:27:02,174 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-13 10:27:02,174 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/679312ba-82d0-4cd8-ad6d-b8b3d9c98342
2025-04-13 10:27:02,184 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3ce887e-f227-40a6-9526-e8c9734db10a
2025-04-13 10:27:02,200 - INFO - Verified VN network id 8 for VN 679312ba-82d0-4cd8-ad6d-b8b3d9c98342
2025-04-13 10:27:02,200 - INFO - Verifications in API Server for VN ctest-vn-01414796 passed
2025-04-13 10:27:02,200 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/679312ba-82d0-4cd8-ad6d-b8b3d9c98342
2025-04-13 10:27:02,210 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3ce887e-f227-40a6-9526-e8c9734db10a
2025-04-13 10:27:02,218 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b3ce887e-f227-40a6-9526-e8c9734db10a
2025-04-13 10:27:02,225 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4ef7f6de-05c5-4ecd-89f0-119809aec3fa
2025-04-13 10:27:02,238 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-01414796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46943356', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7463329599750950104', 'uuid-lslong': '12496847623615513410'}, 'enable': 'true', 'created': '2025-04-13T10:26:59', 'last-modified': '2025-04-13T10:27:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987593'}
2025-04-13 10:27:02,244 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-13 10:27:02,245 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01414796 passed
2025-04-13 10:27:02,245 - DEBUG - ====Verifying policy data for ctest-vn-01414796 in API_Server ======
2025-04-13 10:27:02,245 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 10:27:02,251 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1250dcde-ae73-4788-ad0a-84d56019fbae
2025-04-13 10:27:02,262 - DEBUG - Requesting: http://10.0.0.254:8082/project/65494425-4fac-4546-9f05-c875fbb4eaa3
2025-04-13 10:27:02,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/679312ba-82d0-4cd8-ad6d-b8b3d9c98342
2025-04-13 10:27:02,348 - DEBUG - ==>Verifying data for policy with id: d7e2c6e9-cdc1-40c3-956c-3032417dd87c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-policy-allow-all-94933404']
2025-04-13 10:27:02,348 - INFO - VN ctest-vn-01414796 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-13 10:27:02,348 - DEBUG - Verifying the vn in opserver
2025-04-13 10:27:02,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-01414796 virtual network link through opserver 10.0.0.254
2025-04-13 10:27:02,349 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-13 10:27:02,647 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-13 10:27:02,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-01414796', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-01414796?flat'}
2025-04-13 10:27:02,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-01414796 is found in opserver
2025-04-13 10:27:02,714 - DEBUG - Do not have enough data to verify VN in agent
2025-04-13 10:27:02,720 - DEBUG - VRF ids for VN ctest-vn-01414796: {}
2025-04-13 10:27:02,720 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 10:27:02,726 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1250dcde-ae73-4788-ad0a-84d56019fbae
2025-04-13 10:27:02,740 - DEBUG - Requesting: http://10.0.0.254:8082/project/65494425-4fac-4546-9f05-c875fbb4eaa3
2025-04-13 10:27:02,815 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/23392f88-1c9b-473c-a102-6c045c59744b
2025-04-13 10:27:02,828 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/23392f88-1c9b-473c-a102-6c045c59744b
2025-04-13 10:27:02,838 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/931f7904-a1c6-41a1-a1f0-13593429b68b
2025-04-13 10:27:02,847 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/931f7904-a1c6-41a1-a1f0-13593429b68b
2025-04-13 10:27:02,854 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a601e5ca-fde0-4f57-a35b-fffb2f8f7aee
2025-04-13 10:27:02,861 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-13 10:27:02,861 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/23392f88-1c9b-473c-a102-6c045c59744b
2025-04-13 10:27:02,871 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/931f7904-a1c6-41a1-a1f0-13593429b68b
2025-04-13 10:27:02,885 - INFO - Verified VN network id 9 for VN 23392f88-1c9b-473c-a102-6c045c59744b
2025-04-13 10:27:02,885 - INFO - Verifications in API Server for VN ctest-vn-78070308 passed
2025-04-13 10:27:02,885 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/23392f88-1c9b-473c-a102-6c045c59744b
2025-04-13 10:27:02,895 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/931f7904-a1c6-41a1-a1f0-13593429b68b
2025-04-13 10:27:02,902 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/931f7904-a1c6-41a1-a1f0-13593429b68b
2025-04-13 10:27:02,909 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a601e5ca-fde0-4f57-a35b-fffb2f8f7aee
2025-04-13 10:27:02,922 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-78070308', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46943356', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2538112126641981244', 'uuid-lslong': '11601954356044854347'}, 'enable': 'true', 'created': '2025-04-13T10:27:00', 'last-modified': '2025-04-13T10:27:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437681'}
2025-04-13 10:27:02,928 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-13 10:27:02,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78070308 passed
2025-04-13 10:27:02,929 - DEBUG - ====Verifying policy data for ctest-vn-78070308 in API_Server ======
2025-04-13 10:27:02,929 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-13 10:27:02,935 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1250dcde-ae73-4788-ad0a-84d56019fbae
2025-04-13 10:27:02,948 - DEBUG - Requesting: http://10.0.0.254:8082/project/65494425-4fac-4546-9f05-c875fbb4eaa3
2025-04-13 10:27:03,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/23392f88-1c9b-473c-a102-6c045c59744b
2025-04-13 10:27:03,034 - DEBUG - ==>Verifying data for policy with id: d7e2c6e9-cdc1-40c3-956c-3032417dd87c, fqn: ['default-domain', 'ctest-TestBasicPolicy-46943356', 'ctest-policy-allow-all-94933404']
2025-04-13 10:27:03,034 - INFO - VN ctest-vn-78070308 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-13 10:27:03,034 - DEBUG - Verifying the vn in opserver
2025-04-13 10:27:03,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-78070308 virtual network link through opserver 10.0.0.254
2025-04-13 10:27:03,035 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-13 10:27:03,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-78070308', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-78070308?flat'}
2025-04-13 10:27:03,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46943356:ctest-vn-78070308 is found in opserver
2025-04-13 10:27:03,056 - DEBUG - Do not have enough data to verify VN in agent
2025-04-13 10:27:03,061 - DEBUG - VRF ids for VN ctest-vn-78070308: {}
2025-04-13 10:27:03,121 - DEBUG - Services list from nova: [