2025-06-02 02:26:49,187 - INFO - Domain Default found not creating
2025-06-02 02:26:49,316 - INFO - Project ctest-TestBasicPolicy-62242900 not found, creating it
2025-06-02 02:26:49,783 - INFO - Created Project:ctest-TestBasicPolicy-62242900, ID : 5eb067fb-49b5-4b3f-a99c-782b86c8e53a
2025-06-02 02:26:51,382 - INFO - ================================================================================
2025-06-02 02:26:51,382 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-02 02:26:51,382 - 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-06-02 02:26:51,649 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-06-02 02:26:51,649 - INFO - Initial checks done. Running the testcase now
2025-06-02 02:26:51,649 - INFO -
2025-06-02 02:26:52,256 - DEBUG - Response for create_network : {'network': {'id': '8f4acf0b-f532-4941-b497-f467349602c1', 'name': 'ctest-vn-45933128', 'tenant_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'project_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-vn-45933128'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:26:52,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b8b327b-2e6b-41d8-8898-60e2762927e6', 'name': '', 'tenant_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'network_id': '8f4acf0b-f532-4941-b497-f467349602c1', 'ip_version': 4, 'cidr': '58.97.66.0/26', 'allocation_pools': [{'start': '58.97.66.2', 'end': '58.97.66.62'}], 'gateway_ip': '58.97.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.97.66.2', 'tags': [], 'project_id': '5eb067fb49b54b3fa99c782b86c8e53a'}}
2025-06-02 02:26:52,448 - INFO - Created VN ctest-vn-45933128
2025-06-02 02:26:52,503 - DEBUG - VN ctest-vn-45933128 UUID is 8f4acf0b-f532-4941-b497-f467349602c1
2025-06-02 02:26:52,844 - DEBUG - Response for create_network : {'network': {'id': '0bbb18bf-6da4-45ee-959d-67af812048a7', 'name': 'ctest-vn-15689255', 'tenant_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'project_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-vn-15689255'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:26:53,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dea93ab-3e7d-47c3-afbc-0484448f2bc2', 'name': '', 'tenant_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'network_id': '0bbb18bf-6da4-45ee-959d-67af812048a7', 'ip_version': 4, 'cidr': '43.2.189.0/26', 'allocation_pools': [{'start': '43.2.189.2', 'end': '43.2.189.62'}], 'gateway_ip': '43.2.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.2.189.2', 'tags': [], 'project_id': '5eb067fb49b54b3fa99c782b86c8e53a'}}
2025-06-02 02:26:53,093 - INFO - Created VN ctest-vn-15689255
2025-06-02 02:26:53,151 - DEBUG - VN ctest-vn-15689255 UUID is 0bbb18bf-6da4-45ee-959d-67af812048a7
2025-06-02 02:26:53,266 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-45933128, 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-62242900:ctest-vn-15689255, 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-06-02 02:26:53,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f4acf0b-f532-4941-b497-f467349602c1', 'name': 'ctest-vn-45933128', 'tenant_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'project_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4b8b327b-2e6b-41d8-8898-60e2762927e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-vn-45933128'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-policy-allow-all-47114596']], 'subnet_ipam': [{'subnet_cidr': '58.97.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:26:53,808 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0bbb18bf-6da4-45ee-959d-67af812048a7', 'name': 'ctest-vn-15689255', 'tenant_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'project_id': '5eb067fb49b54b3fa99c782b86c8e53a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6dea93ab-3e7d-47c3-afbc-0484448f2bc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-vn-15689255'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-policy-allow-all-47114596']], 'subnet_ipam': [{'subnet_cidr': '43.2.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 02:26:53,975 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-02 02:26:54,304 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-02 02:26:54,334 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c1398e6d-186b-472e-80bf-1735e2faf972
2025-06-02 02:26:54,347 - DEBUG - Requesting: http://10.0.0.242:8082/project/5eb067fb-49b5-4b3f-a99c-782b86c8e53a
2025-06-02 02:26:54,422 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8f4acf0b-f532-4941-b497-f467349602c1
2025-06-02 02:26:54,433 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8f4acf0b-f532-4941-b497-f467349602c1
2025-06-02 02:26:54,443 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/394c175c-92e3-4e8d-9767-b6b991a262c4
2025-06-02 02:26:54,450 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/394c175c-92e3-4e8d-9767-b6b991a262c4
2025-06-02 02:26:54,457 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bc5c0439-1bfc-4fe7-bc57-03c8bc2de319
2025-06-02 02:26:54,463 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 02:26:54,463 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8f4acf0b-f532-4941-b497-f467349602c1
2025-06-02 02:26:54,472 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/394c175c-92e3-4e8d-9767-b6b991a262c4
2025-06-02 02:26:54,486 - INFO - Verified VN network id 8 for VN 8f4acf0b-f532-4941-b497-f467349602c1
2025-06-02 02:26:54,486 - INFO - Verifications in API Server for VN ctest-vn-45933128 passed
2025-06-02 02:26:54,486 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8f4acf0b-f532-4941-b497-f467349602c1
2025-06-02 02:26:54,497 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/394c175c-92e3-4e8d-9767-b6b991a262c4
2025-06-02 02:26:54,504 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/394c175c-92e3-4e8d-9767-b6b991a262c4
2025-06-02 02:26:54,512 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bc5c0439-1bfc-4fe7-bc57-03c8bc2de319
2025-06-02 02:26:54,525 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-45933128', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62242900', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10325292745965586753', 'uuid-lslong': '13013138372411392705'}, 'enable': 'true', 'created': '2025-06-02T02:26:52', 'last-modified': '2025-06-02T02:26:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983773'}
2025-06-02 02:26:54,533 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 02:26:54,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45933128 passed
2025-06-02 02:26:54,534 - DEBUG - ====Verifying policy data for ctest-vn-45933128 in API_Server ======
2025-06-02 02:26:54,534 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-02 02:26:54,540 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c1398e6d-186b-472e-80bf-1735e2faf972
2025-06-02 02:26:54,555 - DEBUG - Requesting: http://10.0.0.242:8082/project/5eb067fb-49b5-4b3f-a99c-782b86c8e53a
2025-06-02 02:26:54,636 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8f4acf0b-f532-4941-b497-f467349602c1
2025-06-02 02:26:54,648 - DEBUG - ==>Verifying data for policy with id: 9872fe10-9f9b-4f3b-8cc3-ae480bcc4471, fqn: ['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-policy-allow-all-47114596']
2025-06-02 02:26:54,648 - INFO - VN ctest-vn-45933128 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 02:26:54,648 - DEBUG - Verifying the vn in opserver
2025-06-02 02:26:54,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-45933128 virtual network link through opserver 10.0.0.242
2025-06-02 02:26:54,649 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-02 02:26:54,980 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-02 02:26:55,041 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-45933128', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-45933128?flat'}
2025-06-02 02:26:55,041 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-45933128 is found in opserver
2025-06-02 02:26:55,053 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 02:26:55,058 - DEBUG - VRF ids for VN ctest-vn-45933128: {}
2025-06-02 02:26:55,058 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-02 02:26:55,064 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c1398e6d-186b-472e-80bf-1735e2faf972
2025-06-02 02:26:55,076 - DEBUG - Requesting: http://10.0.0.242:8082/project/5eb067fb-49b5-4b3f-a99c-782b86c8e53a
2025-06-02 02:26:55,154 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0bbb18bf-6da4-45ee-959d-67af812048a7
2025-06-02 02:26:55,168 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0bbb18bf-6da4-45ee-959d-67af812048a7
2025-06-02 02:26:55,179 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e95012b8-54a3-407a-af1a-b2a9425d73aa
2025-06-02 02:26:55,186 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e95012b8-54a3-407a-af1a-b2a9425d73aa
2025-06-02 02:26:55,193 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/40de3cd3-ba69-45de-9396-2ba9d57c6fcf
2025-06-02 02:26:55,199 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 02:26:55,199 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0bbb18bf-6da4-45ee-959d-67af812048a7
2025-06-02 02:26:55,209 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e95012b8-54a3-407a-af1a-b2a9425d73aa
2025-06-02 02:26:55,222 - INFO - Verified VN network id 9 for VN 0bbb18bf-6da4-45ee-959d-67af812048a7
2025-06-02 02:26:55,222 - INFO - Verifications in API Server for VN ctest-vn-15689255 passed
2025-06-02 02:26:55,223 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0bbb18bf-6da4-45ee-959d-67af812048a7
2025-06-02 02:26:55,232 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e95012b8-54a3-407a-af1a-b2a9425d73aa
2025-06-02 02:26:55,239 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e95012b8-54a3-407a-af1a-b2a9425d73aa
2025-06-02 02:26:55,247 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/40de3cd3-ba69-45de-9396-2ba9d57c6fcf
2025-06-02 02:26:55,261 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-15689255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62242900', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '845296565519402478', 'uuid-lslong': '10780887086478149799'}, 'enable': 'true', 'created': '2025-06-02T02:26:52', 'last-modified': '2025-06-02T02:26:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479466'}
2025-06-02 02:26:55,267 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 02:26:55,268 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15689255 passed
2025-06-02 02:26:55,268 - DEBUG - ====Verifying policy data for ctest-vn-15689255 in API_Server ======
2025-06-02 02:26:55,268 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-02 02:26:55,274 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c1398e6d-186b-472e-80bf-1735e2faf972
2025-06-02 02:26:55,285 - DEBUG - Requesting: http://10.0.0.242:8082/project/5eb067fb-49b5-4b3f-a99c-782b86c8e53a
2025-06-02 02:26:55,359 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0bbb18bf-6da4-45ee-959d-67af812048a7
2025-06-02 02:26:55,370 - DEBUG - ==>Verifying data for policy with id: 9872fe10-9f9b-4f3b-8cc3-ae480bcc4471, fqn: ['default-domain', 'ctest-TestBasicPolicy-62242900', 'ctest-policy-allow-all-47114596']
2025-06-02 02:26:55,370 - INFO - VN ctest-vn-15689255 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 02:26:55,370 - DEBUG - Verifying the vn in opserver
2025-06-02 02:26:55,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-15689255 virtual network link through opserver 10.0.0.242
2025-06-02 02:26:55,370 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-02 02:26:55,381 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-15689255', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-15689255?flat'}
2025-06-02 02:26:55,381 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62242900:ctest-vn-15689255 is found in opserver
2025-06-02 02:26:55,392 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 02:26:55,397 - DEBUG - VRF ids for VN ctest-vn-15689255: {}
2025-06-02 02:26:55,452 - DEBUG - Services list from nova: [