2025-04-25 09:19:29,581 - INFO - Domain Default found not creating
2025-04-25 09:19:29,698 - INFO - Project ctest-TestBasicPolicy-09625232 not found, creating it
2025-04-25 09:19:30,106 - INFO - Created Project:ctest-TestBasicPolicy-09625232, ID : b317a25c-fcb2-4f2f-ba6e-89891877f7b8
2025-04-25 09:19:31,330 - INFO - ================================================================================
2025-04-25 09:19:31,330 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-25 09:19:31,330 - 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-25 09:19:31,588 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-25 09:19:31,589 - INFO - Initial checks done. Running the testcase now
2025-04-25 09:19:31,589 - INFO -
2025-04-25 09:19:32,064 - DEBUG - Response for create_network : {'network': {'id': 'a97130f8-d0ed-4bc1-92b1-ad0e76c40204', 'name': 'ctest-vn-06614653', 'tenant_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'project_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-vn-06614653'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 09:19:32,253 - DEBUG - Response for create_subnet : {'subnet': {'id': '14d6eb46-ca74-469c-909a-b72f672b1d31', 'name': '', 'tenant_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'network_id': 'a97130f8-d0ed-4bc1-92b1-ad0e76c40204', 'ip_version': 4, 'cidr': '4.151.189.128/26', 'allocation_pools': [{'start': '4.151.189.130', 'end': '4.151.189.190'}], 'gateway_ip': '4.151.189.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.151.189.130', 'tags': [], 'project_id': 'b317a25cfcb24f2fba6e89891877f7b8'}}
2025-04-25 09:19:32,268 - INFO - Created VN ctest-vn-06614653
2025-04-25 09:19:32,319 - DEBUG - VN ctest-vn-06614653 UUID is a97130f8-d0ed-4bc1-92b1-ad0e76c40204
2025-04-25 09:19:32,661 - DEBUG - Response for create_network : {'network': {'id': '2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee', 'name': 'ctest-vn-09435985', 'tenant_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'project_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-vn-09435985'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 09:19:32,851 - DEBUG - Response for create_subnet : {'subnet': {'id': '884ef4ca-8294-4d52-9a3f-4d3dff633729', 'name': '', 'tenant_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'network_id': '2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee', 'ip_version': 4, 'cidr': '36.128.82.0/26', 'allocation_pools': [{'start': '36.128.82.2', 'end': '36.128.82.62'}], 'gateway_ip': '36.128.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.128.82.2', 'tags': [], 'project_id': 'b317a25cfcb24f2fba6e89891877f7b8'}}
2025-04-25 09:19:32,865 - INFO - Created VN ctest-vn-09435985
2025-04-25 09:19:32,915 - DEBUG - VN ctest-vn-09435985 UUID is 2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee
2025-04-25 09:19:33,059 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-06614653, 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-09625232:ctest-vn-09435985, 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-25 09:19:33,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a97130f8-d0ed-4bc1-92b1-ad0e76c40204', 'name': 'ctest-vn-06614653', 'tenant_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'project_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14d6eb46-ca74-469c-909a-b72f672b1d31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-vn-06614653'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-policy-allow-all-38578858']], 'subnet_ipam': [{'subnet_cidr': '4.151.189.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 09:19:33,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee', 'name': 'ctest-vn-09435985', 'tenant_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'project_id': 'b317a25cfcb24f2fba6e89891877f7b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['884ef4ca-8294-4d52-9a3f-4d3dff633729'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-vn-09435985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-policy-allow-all-38578858']], 'subnet_ipam': [{'subnet_cidr': '36.128.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 09:19:33,703 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 09:19:33,959 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 09:19:33,983 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b3afc91-f790-4913-89fd-011f1835e7c7
2025-04-25 09:19:33,994 - DEBUG - Requesting: http://10.0.0.38:8082/project/b317a25c-fcb2-4f2f-ba6e-89891877f7b8
2025-04-25 09:19:34,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a97130f8-d0ed-4bc1-92b1-ad0e76c40204
2025-04-25 09:19:34,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a97130f8-d0ed-4bc1-92b1-ad0e76c40204
2025-04-25 09:19:34,082 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/574b3102-b7c4-41ea-b0b2-da50f8932a19
2025-04-25 09:19:34,088 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/574b3102-b7c4-41ea-b0b2-da50f8932a19
2025-04-25 09:19:34,093 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cce241f0-2a57-4cc9-b99d-a77ff1973687
2025-04-25 09:19:34,098 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 09:19:34,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a97130f8-d0ed-4bc1-92b1-ad0e76c40204
2025-04-25 09:19:34,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/574b3102-b7c4-41ea-b0b2-da50f8932a19
2025-04-25 09:19:34,116 - INFO - Verified VN network id 9 for VN a97130f8-d0ed-4bc1-92b1-ad0e76c40204
2025-04-25 09:19:34,116 - INFO - Verifications in API Server for VN ctest-vn-06614653 passed
2025-04-25 09:19:34,116 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a97130f8-d0ed-4bc1-92b1-ad0e76c40204
2025-04-25 09:19:34,123 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/574b3102-b7c4-41ea-b0b2-da50f8932a19
2025-04-25 09:19:34,130 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/574b3102-b7c4-41ea-b0b2-da50f8932a19
2025-04-25 09:19:34,135 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cce241f0-2a57-4cc9-b99d-a77ff1973687
2025-04-25 09:19:34,145 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-06614653', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09625232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12209593909993360321', 'uuid-lslong': '10570420078048969220'}, 'enable': 'true', 'created': '2025-04-25T09:19:32', 'last-modified': '2025-04-25T09:19:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.831408'}
2025-04-25 09:19:34,153 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 09:19:34,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06614653 passed
2025-04-25 09:19:34,153 - DEBUG - ====Verifying policy data for ctest-vn-06614653 in API_Server ======
2025-04-25 09:19:34,153 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 09:19:34,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b3afc91-f790-4913-89fd-011f1835e7c7
2025-04-25 09:19:34,170 - DEBUG - Requesting: http://10.0.0.38:8082/project/b317a25c-fcb2-4f2f-ba6e-89891877f7b8
2025-04-25 09:19:34,245 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a97130f8-d0ed-4bc1-92b1-ad0e76c40204
2025-04-25 09:19:34,256 - DEBUG - ==>Verifying data for policy with id: 244b7dee-0d19-4fdc-bf2a-375d2bdfc45c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-policy-allow-all-38578858']
2025-04-25 09:19:34,256 - INFO - VN ctest-vn-06614653 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 09:19:34,256 - DEBUG - Verifying the vn in opserver
2025-04-25 09:19:34,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-06614653 virtual network link through opserver 10.0.0.38
2025-04-25 09:19:34,256 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-25 09:19:34,512 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-25 09:19:34,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-06614653', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-06614653?flat'}
2025-04-25 09:19:34,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-06614653 is found in opserver
2025-04-25 09:19:34,567 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 09:19:34,572 - DEBUG - VRF ids for VN ctest-vn-06614653: {}
2025-04-25 09:19:34,572 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 09:19:34,580 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b3afc91-f790-4913-89fd-011f1835e7c7
2025-04-25 09:19:34,593 - DEBUG - Requesting: http://10.0.0.38:8082/project/b317a25c-fcb2-4f2f-ba6e-89891877f7b8
2025-04-25 09:19:34,660 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee
2025-04-25 09:19:34,679 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee
2025-04-25 09:19:34,687 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad61e391-aaaf-4970-8717-f8e6821af172
2025-04-25 09:19:34,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad61e391-aaaf-4970-8717-f8e6821af172
2025-04-25 09:19:34,699 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8881f87a-2d03-4018-9380-1e62024822a3
2025-04-25 09:19:34,705 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 09:19:34,705 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee
2025-04-25 09:19:34,712 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad61e391-aaaf-4970-8717-f8e6821af172
2025-04-25 09:19:34,722 - INFO - Verified VN network id 10 for VN 2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee
2025-04-25 09:19:34,723 - INFO - Verifications in API Server for VN ctest-vn-09435985 passed
2025-04-25 09:19:34,723 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee
2025-04-25 09:19:34,730 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad61e391-aaaf-4970-8717-f8e6821af172
2025-04-25 09:19:34,735 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad61e391-aaaf-4970-8717-f8e6821af172
2025-04-25 09:19:34,741 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8881f87a-2d03-4018-9380-1e62024822a3
2025-04-25 09:19:34,751 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-09435985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09625232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3331891135941332421', 'uuid-lslong': '13037096172813211886'}, 'enable': 'true', 'created': '2025-04-25T09:19:32', 'last-modified': '2025-04-25T09:19:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.224399'}
2025-04-25 09:19:34,757 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 09:19:34,757 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09435985 passed
2025-04-25 09:19:34,757 - DEBUG - ====Verifying policy data for ctest-vn-09435985 in API_Server ======
2025-04-25 09:19:34,757 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 09:19:34,762 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6b3afc91-f790-4913-89fd-011f1835e7c7
2025-04-25 09:19:34,772 - DEBUG - Requesting: http://10.0.0.38:8082/project/b317a25c-fcb2-4f2f-ba6e-89891877f7b8
2025-04-25 09:19:34,840 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e3d4155-c40e-4dc5-b4ed-11e54b22d8ee
2025-04-25 09:19:34,849 - DEBUG - ==>Verifying data for policy with id: 244b7dee-0d19-4fdc-bf2a-375d2bdfc45c, fqn: ['default-domain', 'ctest-TestBasicPolicy-09625232', 'ctest-policy-allow-all-38578858']
2025-04-25 09:19:34,849 - INFO - VN ctest-vn-09435985 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 09:19:34,849 - DEBUG - Verifying the vn in opserver
2025-04-25 09:19:34,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-09435985 virtual network link through opserver 10.0.0.38
2025-04-25 09:19:34,849 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-25 09:19:34,857 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-09435985', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-09435985?flat'}
2025-04-25 09:19:34,857 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09625232:ctest-vn-09435985 is found in opserver
2025-04-25 09:19:34,866 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 09:19:34,874 - DEBUG - VRF ids for VN ctest-vn-09435985: {}
2025-04-25 09:19:34,922 - DEBUG - Services list from nova: [