2025-04-16 16:47:36,176 - INFO - Domain Default found not creating
2025-04-16 16:47:36,337 - INFO - Project ctest-TestBasicPolicy-40194212 not found, creating it
2025-04-16 16:47:36,861 - INFO - Created Project:ctest-TestBasicPolicy-40194212, ID : 01b60d56-918e-4f69-8028-26d18d50e9bc
2025-04-16 16:47:38,467 - INFO - ================================================================================
2025-04-16 16:47:38,468 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-16 16:47:38,468 - 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-16 16:47:38,723 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-04-16 16:47:38,723 - INFO - Initial checks done. Running the testcase now
2025-04-16 16:47:38,723 - INFO -
2025-04-16 16:47:39,340 - DEBUG - Response for create_network : {'network': {'id': 'c6e7493c-fb2e-42ae-9755-8f3802433a2c', 'name': 'ctest-vn-30832557', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-30832557'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 16:47:39,555 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b36f3b3-be2c-4db2-bf36-5dde7fa528ab', 'name': '', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'network_id': 'c6e7493c-fb2e-42ae-9755-8f3802433a2c', 'ip_version': 4, 'cidr': '96.125.29.64/26', 'allocation_pools': [{'start': '96.125.29.66', 'end': '96.125.29.126'}], 'gateway_ip': '96.125.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.125.29.66', 'tags': [], 'project_id': '01b60d56918e4f69802826d18d50e9bc'}}
2025-04-16 16:47:39,573 - INFO - Created VN ctest-vn-30832557
2025-04-16 16:47:39,624 - DEBUG - VN ctest-vn-30832557 UUID is c6e7493c-fb2e-42ae-9755-8f3802433a2c
2025-04-16 16:47:39,918 - DEBUG - Response for create_network : {'network': {'id': 'd9e89132-ddd7-4958-bc83-4c46923655de', 'name': 'ctest-vn-80672839', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-80672839'], 'port_security_enabled': True, 'description': ''}}
2025-04-16 16:47:40,099 - DEBUG - Response for create_subnet : {'subnet': {'id': '996d0ce7-d4a0-490e-9866-c3e54d6be11e', 'name': '', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'network_id': 'd9e89132-ddd7-4958-bc83-4c46923655de', 'ip_version': 4, 'cidr': '93.101.179.128/26', 'allocation_pools': [{'start': '93.101.179.130', 'end': '93.101.179.190'}], 'gateway_ip': '93.101.179.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.101.179.130', 'tags': [], 'project_id': '01b60d56918e4f69802826d18d50e9bc'}}
2025-04-16 16:47:40,118 - INFO - Created VN ctest-vn-80672839
2025-04-16 16:47:40,172 - DEBUG - VN ctest-vn-80672839 UUID is d9e89132-ddd7-4958-bc83-4c46923655de
2025-04-16 16:47:40,284 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557, 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-40194212:ctest-vn-80672839, 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-16 16:47:40,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6e7493c-fb2e-42ae-9755-8f3802433a2c', 'name': 'ctest-vn-30832557', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b36f3b3-be2c-4db2-bf36-5dde7fa528ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-30832557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432']], 'subnet_ipam': [{'subnet_cidr': '96.125.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 16:47:40,861 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9e89132-ddd7-4958-bc83-4c46923655de', 'name': 'ctest-vn-80672839', 'tenant_id': '01b60d56918e4f69802826d18d50e9bc', 'project_id': '01b60d56918e4f69802826d18d50e9bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['996d0ce7-d4a0-490e-9866-c3e54d6be11e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-vn-80672839'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432']], 'subnet_ipam': [{'subnet_cidr': '93.101.179.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-16 16:47:41,032 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-16 16:47:41,372 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-16 16:47:41,405 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2
2025-04-16 16:47:41,421 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc
2025-04-16 16:47:41,503 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c
2025-04-16 16:47:41,518 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c
2025-04-16 16:47:41,531 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e
2025-04-16 16:47:41,542 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e
2025-04-16 16:47:41,551 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1f854b31-bb89-44cf-9206-f8a047ec8162
2025-04-16 16:47:41,559 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 16:47:41,559 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c
2025-04-16 16:47:41,573 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e
2025-04-16 16:47:41,591 - INFO - Verified VN network id 8 for VN c6e7493c-fb2e-42ae-9755-8f3802433a2c
2025-04-16 16:47:41,592 - INFO - Verifications in API Server for VN ctest-vn-30832557 passed
2025-04-16 16:47:41,592 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c
2025-04-16 16:47:41,605 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e
2025-04-16 16:47:41,615 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/435a89ca-bcc2-4714-a017-927bdb9b483e
2025-04-16 16:47:41,626 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1f854b31-bb89-44cf-9206-f8a047ec8162
2025-04-16 16:47:41,644 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40194212', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14332504865390871214', 'uuid-lslong': '10904779543466424876'}, 'enable': 'true', 'created': '2025-04-16T16:47:39', 'last-modified': '2025-04-16T16:47:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073776'}
2025-04-16 16:47:41,654 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-16 16:47:41,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30832557 passed
2025-04-16 16:47:41,654 - DEBUG - ====Verifying policy data for ctest-vn-30832557 in API_Server ======
2025-04-16 16:47:41,655 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-16 16:47:41,662 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2
2025-04-16 16:47:41,679 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc
2025-04-16 16:47:41,757 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c6e7493c-fb2e-42ae-9755-8f3802433a2c
2025-04-16 16:47:41,768 - DEBUG - ==>Verifying data for policy with id: 8e163b3f-582c-4f04-b1e4-ec154b010279, fqn: ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432']
2025-04-16 16:47:41,768 - INFO - VN ctest-vn-30832557 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 16:47:41,769 - DEBUG - Verifying the vn in opserver
2025-04-16 16:47:41,769 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557 virtual network link through opserver 10.0.0.41
2025-04-16 16:47:41,769 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-16 16:47:42,106 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-16 16:47:42,167 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557?flat'}
2025-04-16 16:47:42,167 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-30832557 is found in opserver
2025-04-16 16:47:42,182 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 16:47:42,189 - DEBUG - VRF ids for VN ctest-vn-30832557: {}
2025-04-16 16:47:42,189 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-16 16:47:42,197 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2
2025-04-16 16:47:42,214 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc
2025-04-16 16:47:42,290 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de
2025-04-16 16:47:42,304 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de
2025-04-16 16:47:42,314 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b
2025-04-16 16:47:42,322 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b
2025-04-16 16:47:42,330 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f5bdc830-b160-4971-aa5e-eff2bcfb211a
2025-04-16 16:47:42,339 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 16:47:42,339 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de
2025-04-16 16:47:42,349 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b
2025-04-16 16:47:42,363 - INFO - Verified VN network id 9 for VN d9e89132-ddd7-4958-bc83-4c46923655de
2025-04-16 16:47:42,364 - INFO - Verifications in API Server for VN ctest-vn-80672839 passed
2025-04-16 16:47:42,364 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de
2025-04-16 16:47:42,374 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b
2025-04-16 16:47:42,381 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2685363c-31b4-4e10-acc4-b315a4028f9b
2025-04-16 16:47:42,388 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f5bdc830-b160-4971-aa5e-eff2bcfb211a
2025-04-16 16:47:42,400 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40194212', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15701959748483500376', 'uuid-lslong': '13583784767064004062'}, 'enable': 'true', 'created': '2025-04-16T16:47:39', 'last-modified': '2025-04-16T16:47:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.572343'}
2025-04-16 16:47:42,407 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-16 16:47:42,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80672839 passed
2025-04-16 16:47:42,407 - DEBUG - ====Verifying policy data for ctest-vn-80672839 in API_Server ======
2025-04-16 16:47:42,407 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-16 16:47:42,412 - DEBUG - Requesting: http://10.0.0.41:8082/domain/67376dfc-7c3f-4bc0-9d5b-817b20dfabb2
2025-04-16 16:47:42,424 - DEBUG - Requesting: http://10.0.0.41:8082/project/01b60d56-918e-4f69-8028-26d18d50e9bc
2025-04-16 16:47:42,499 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d9e89132-ddd7-4958-bc83-4c46923655de
2025-04-16 16:47:42,511 - DEBUG - ==>Verifying data for policy with id: 8e163b3f-582c-4f04-b1e4-ec154b010279, fqn: ['default-domain', 'ctest-TestBasicPolicy-40194212', 'ctest-policy-allow-all-83275432']
2025-04-16 16:47:42,511 - INFO - VN ctest-vn-80672839 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-16 16:47:42,511 - DEBUG - Verifying the vn in opserver
2025-04-16 16:47:42,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839 virtual network link through opserver 10.0.0.41
2025-04-16 16:47:42,512 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-16 16:47:42,523 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839?flat'}
2025-04-16 16:47:42,523 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40194212:ctest-vn-80672839 is found in opserver
2025-04-16 16:47:42,536 - DEBUG - Do not have enough data to verify VN in agent
2025-04-16 16:47:42,542 - DEBUG - VRF ids for VN ctest-vn-80672839: {}
2025-04-16 16:47:42,603 - DEBUG - Services list from nova: [