2025-07-18 21:56:57,209 - INFO - Domain Default found not creating
2025-07-18 21:56:57,345 - INFO - Project ctest-TestBasicPolicy-21451082 not found, creating it
2025-07-18 21:56:57,827 - INFO - Created Project:ctest-TestBasicPolicy-21451082, ID : fcb23265-96e1-477e-a5a2-3d26dd83b52b
2025-07-18 21:56:59,250 - INFO - ================================================================================
2025-07-18 21:56:59,250 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-18 21:56:59,250 - 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-07-18 21:56:59,500 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-18 21:56:59,500 - INFO - Initial checks done. Running the testcase now
2025-07-18 21:56:59,500 - INFO -
2025-07-18 21:57:00,044 - DEBUG - Response for create_network : {'network': {'id': 'dbdb23cb-16fc-4f94-adbb-f3a7ba88114b', 'name': 'ctest-vn-20891029', 'tenant_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'project_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-vn-20891029'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 21:57:00,230 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f4d3642-5bd9-4214-a40a-d1dbc289d7ce', 'name': '', 'tenant_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'network_id': 'dbdb23cb-16fc-4f94-adbb-f3a7ba88114b', 'ip_version': 4, 'cidr': '182.165.16.128/26', 'allocation_pools': [{'start': '182.165.16.130', 'end': '182.165.16.190'}], 'gateway_ip': '182.165.16.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.165.16.130', 'tags': [], 'project_id': 'fcb2326596e1477ea5a23d26dd83b52b'}}
2025-07-18 21:57:00,302 - INFO - Created VN ctest-vn-20891029
2025-07-18 21:57:00,354 - DEBUG - VN ctest-vn-20891029 UUID is dbdb23cb-16fc-4f94-adbb-f3a7ba88114b
2025-07-18 21:57:00,644 - DEBUG - Response for create_network : {'network': {'id': '3c772286-9532-434d-81c3-346aa3d576e3', 'name': 'ctest-vn-16724500', 'tenant_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'project_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-vn-16724500'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 21:57:00,874 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e3034c9-8777-43b1-85f7-0ee82081a738', 'name': '', 'tenant_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'network_id': '3c772286-9532-434d-81c3-346aa3d576e3', 'ip_version': 4, 'cidr': '184.11.122.0/26', 'allocation_pools': [{'start': '184.11.122.2', 'end': '184.11.122.62'}], 'gateway_ip': '184.11.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.11.122.2', 'tags': [], 'project_id': 'fcb2326596e1477ea5a23d26dd83b52b'}}
2025-07-18 21:57:00,895 - INFO - Created VN ctest-vn-16724500
2025-07-18 21:57:00,950 - DEBUG - VN ctest-vn-16724500 UUID is 3c772286-9532-434d-81c3-346aa3d576e3
2025-07-18 21:57:01,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-20891029, 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-21451082:ctest-vn-16724500, 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-07-18 21:57:01,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbdb23cb-16fc-4f94-adbb-f3a7ba88114b', 'name': 'ctest-vn-20891029', 'tenant_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'project_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f4d3642-5bd9-4214-a40a-d1dbc289d7ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-vn-20891029'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-policy-allow-all-48417286']], 'subnet_ipam': [{'subnet_cidr': '182.165.16.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 21:57:01,678 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c772286-9532-434d-81c3-346aa3d576e3', 'name': 'ctest-vn-16724500', 'tenant_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'project_id': 'fcb2326596e1477ea5a23d26dd83b52b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e3034c9-8777-43b1-85f7-0ee82081a738'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-vn-16724500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-policy-allow-all-48417286']], 'subnet_ipam': [{'subnet_cidr': '184.11.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 21:57:01,834 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 21:57:02,125 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 21:57:02,152 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9b1b552a-3600-435f-a7e4-5e39c948baad
2025-07-18 21:57:02,166 - DEBUG - Requesting: http://10.0.0.254:8082/project/fcb23265-96e1-477e-a5a2-3d26dd83b52b
2025-07-18 21:57:02,239 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dbdb23cb-16fc-4f94-adbb-f3a7ba88114b
2025-07-18 21:57:02,251 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dbdb23cb-16fc-4f94-adbb-f3a7ba88114b
2025-07-18 21:57:02,262 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b48b2be1-eb45-4e13-aa43-afdb2eb8ffe2
2025-07-18 21:57:02,270 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b48b2be1-eb45-4e13-aa43-afdb2eb8ffe2
2025-07-18 21:57:02,277 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d913c033-b504-4bb2-9d70-3042f3d790b3
2025-07-18 21:57:02,283 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 21:57:02,283 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dbdb23cb-16fc-4f94-adbb-f3a7ba88114b
2025-07-18 21:57:02,292 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b48b2be1-eb45-4e13-aa43-afdb2eb8ffe2
2025-07-18 21:57:02,305 - INFO - Verified VN network id 9 for VN dbdb23cb-16fc-4f94-adbb-f3a7ba88114b
2025-07-18 21:57:02,305 - INFO - Verifications in API Server for VN ctest-vn-20891029 passed
2025-07-18 21:57:02,305 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dbdb23cb-16fc-4f94-adbb-f3a7ba88114b
2025-07-18 21:57:02,314 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b48b2be1-eb45-4e13-aa43-afdb2eb8ffe2
2025-07-18 21:57:02,323 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b48b2be1-eb45-4e13-aa43-afdb2eb8ffe2
2025-07-18 21:57:02,332 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d913c033-b504-4bb2-9d70-3042f3d790b3
2025-07-18 21:57:02,345 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-20891029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21451082', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15842295469376819092', 'uuid-lslong': '12518867490920993099'}, 'enable': 'true', 'created': '2025-07-18T21:57:00', 'last-modified': '2025-07-18T21:57:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993636'}
2025-07-18 21:57:02,353 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 21:57:02,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20891029 passed
2025-07-18 21:57:02,353 - DEBUG - ====Verifying policy data for ctest-vn-20891029 in API_Server ======
2025-07-18 21:57:02,353 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 21:57:02,361 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9b1b552a-3600-435f-a7e4-5e39c948baad
2025-07-18 21:57:02,373 - DEBUG - Requesting: http://10.0.0.254:8082/project/fcb23265-96e1-477e-a5a2-3d26dd83b52b
2025-07-18 21:57:02,444 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/dbdb23cb-16fc-4f94-adbb-f3a7ba88114b
2025-07-18 21:57:02,455 - DEBUG - ==>Verifying data for policy with id: 47e901bd-1ea0-41e4-898b-9a3dadfdc53a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-policy-allow-all-48417286']
2025-07-18 21:57:02,455 - INFO - VN ctest-vn-20891029 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 21:57:02,455 - DEBUG - Verifying the vn in opserver
2025-07-18 21:57:02,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-20891029 virtual network link through opserver 10.0.0.254
2025-07-18 21:57:02,455 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 21:57:02,743 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 21:57:02,792 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-20891029', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-20891029?flat'}
2025-07-18 21:57:02,792 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-20891029 is found in opserver
2025-07-18 21:57:02,803 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 21:57:02,807 - DEBUG - VRF ids for VN ctest-vn-20891029: {}
2025-07-18 21:57:02,807 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 21:57:02,813 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9b1b552a-3600-435f-a7e4-5e39c948baad
2025-07-18 21:57:02,824 - DEBUG - Requesting: http://10.0.0.254:8082/project/fcb23265-96e1-477e-a5a2-3d26dd83b52b
2025-07-18 21:57:02,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c772286-9532-434d-81c3-346aa3d576e3
2025-07-18 21:57:02,908 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c772286-9532-434d-81c3-346aa3d576e3
2025-07-18 21:57:02,918 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/42a298bb-1d81-44f1-a724-6bc298cf4b02
2025-07-18 21:57:02,926 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/42a298bb-1d81-44f1-a724-6bc298cf4b02
2025-07-18 21:57:02,933 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d4d719d9-1218-460b-8f9f-e9904ee672b7
2025-07-18 21:57:02,939 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 21:57:02,939 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c772286-9532-434d-81c3-346aa3d576e3
2025-07-18 21:57:02,949 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/42a298bb-1d81-44f1-a724-6bc298cf4b02
2025-07-18 21:57:02,963 - INFO - Verified VN network id 10 for VN 3c772286-9532-434d-81c3-346aa3d576e3
2025-07-18 21:57:02,964 - INFO - Verifications in API Server for VN ctest-vn-16724500 passed
2025-07-18 21:57:02,964 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c772286-9532-434d-81c3-346aa3d576e3
2025-07-18 21:57:02,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/42a298bb-1d81-44f1-a724-6bc298cf4b02
2025-07-18 21:57:02,980 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/42a298bb-1d81-44f1-a724-6bc298cf4b02
2025-07-18 21:57:02,986 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d4d719d9-1218-460b-8f9f-e9904ee672b7
2025-07-18 21:57:02,997 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-16724500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21451082', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4356989125928305485', 'uuid-lslong': '9350374883971135203'}, 'enable': 'true', 'created': '2025-07-18T21:57:00', 'last-modified': '2025-07-18T21:57:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389383'}
2025-07-18 21:57:03,004 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 21:57:03,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16724500 passed
2025-07-18 21:57:03,005 - DEBUG - ====Verifying policy data for ctest-vn-16724500 in API_Server ======
2025-07-18 21:57:03,005 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 21:57:03,011 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9b1b552a-3600-435f-a7e4-5e39c948baad
2025-07-18 21:57:03,023 - DEBUG - Requesting: http://10.0.0.254:8082/project/fcb23265-96e1-477e-a5a2-3d26dd83b52b
2025-07-18 21:57:03,094 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/3c772286-9532-434d-81c3-346aa3d576e3
2025-07-18 21:57:03,107 - DEBUG - ==>Verifying data for policy with id: 47e901bd-1ea0-41e4-898b-9a3dadfdc53a, fqn: ['default-domain', 'ctest-TestBasicPolicy-21451082', 'ctest-policy-allow-all-48417286']
2025-07-18 21:57:03,107 - INFO - VN ctest-vn-16724500 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 21:57:03,107 - DEBUG - Verifying the vn in opserver
2025-07-18 21:57:03,107 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-16724500 virtual network link through opserver 10.0.0.254
2025-07-18 21:57:03,107 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 21:57:03,121 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-16724500', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-16724500?flat'}
2025-07-18 21:57:03,121 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21451082:ctest-vn-16724500 is found in opserver
2025-07-18 21:57:03,133 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 21:57:03,138 - DEBUG - VRF ids for VN ctest-vn-16724500: {}
2025-07-18 21:57:03,206 - DEBUG - Services list from nova: [