2025-09-19 21:32:26,903 - INFO - Domain Default found not creating
2025-09-19 21:32:27,032 - INFO - Project ctest-TestBasicPolicy-04642084 not found, creating it
2025-09-19 21:32:27,458 - INFO - Created Project:ctest-TestBasicPolicy-04642084, ID : cb40a55d-d968-4eed-baa8-2eca533ff410
2025-09-19 21:32:28,791 - INFO - ================================================================================
2025-09-19 21:32:28,791 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-19 21:32:28,791 - 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-09-19 21:32:29,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-19 21:32:29,043 - INFO - Initial checks done. Running the testcase now
2025-09-19 21:32:29,043 - INFO -
2025-09-19 21:32:29,557 - DEBUG - Response for create_network : {'network': {'id': '06344b48-9edc-4032-900e-c314d6fac118', 'name': 'ctest-vn-31806920', 'tenant_id': 'cb40a55dd9684eedbaa82eca533ff410', 'project_id': 'cb40a55dd9684eedbaa82eca533ff410', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-vn-31806920'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 21:32:29,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '446de9a7-a32e-4570-b30e-4ea3fa636c05', 'name': '', 'tenant_id': 'cb40a55dd9684eedbaa82eca533ff410', 'network_id': '06344b48-9edc-4032-900e-c314d6fac118', 'ip_version': 4, 'cidr': '90.44.65.0/26', 'allocation_pools': [{'start': '90.44.65.2', 'end': '90.44.65.62'}], 'gateway_ip': '90.44.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.44.65.2', 'tags': [], 'project_id': 'cb40a55dd9684eedbaa82eca533ff410'}}
2025-09-19 21:32:29,748 - INFO - Created VN ctest-vn-31806920
2025-09-19 21:32:29,798 - DEBUG - VN ctest-vn-31806920 UUID is 06344b48-9edc-4032-900e-c314d6fac118
2025-09-19 21:32:30,090 - DEBUG - Response for create_network : {'network': {'id': '71327f05-2b02-40a5-bea2-83eea2ffa8d3', 'name': 'ctest-vn-82391186', 'tenant_id': 'cb40a55dd9684eedbaa82eca533ff410', 'project_id': 'cb40a55dd9684eedbaa82eca533ff410', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-vn-82391186'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 21:32:30,244 - DEBUG - Response for create_subnet : {'subnet': {'id': '37793d0a-0a03-4e34-bf64-4159c0c0f830', 'name': '', 'tenant_id': 'cb40a55dd9684eedbaa82eca533ff410', 'network_id': '71327f05-2b02-40a5-bea2-83eea2ffa8d3', 'ip_version': 4, 'cidr': '198.91.122.192/26', 'allocation_pools': [{'start': '198.91.122.194', 'end': '198.91.122.254'}], 'gateway_ip': '198.91.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.91.122.194', 'tags': [], 'project_id': 'cb40a55dd9684eedbaa82eca533ff410'}}
2025-09-19 21:32:30,259 - INFO - Created VN ctest-vn-82391186
2025-09-19 21:32:30,310 - DEBUG - VN ctest-vn-82391186 UUID is 71327f05-2b02-40a5-bea2-83eea2ffa8d3
2025-09-19 21:32:30,454 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-31806920, 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-04642084:ctest-vn-82391186, 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-09-19 21:32:30,735 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06344b48-9edc-4032-900e-c314d6fac118', 'name': 'ctest-vn-31806920', 'tenant_id': 'cb40a55dd9684eedbaa82eca533ff410', 'project_id': 'cb40a55dd9684eedbaa82eca533ff410', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['446de9a7-a32e-4570-b30e-4ea3fa636c05'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-vn-31806920'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-policy-allow-all-17327270']], 'subnet_ipam': [{'subnet_cidr': '90.44.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 21:32:30,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '71327f05-2b02-40a5-bea2-83eea2ffa8d3', 'name': 'ctest-vn-82391186', 'tenant_id': 'cb40a55dd9684eedbaa82eca533ff410', 'project_id': 'cb40a55dd9684eedbaa82eca533ff410', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37793d0a-0a03-4e34-bf64-4159c0c0f830'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-vn-82391186'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-policy-allow-all-17327270']], 'subnet_ipam': [{'subnet_cidr': '198.91.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 21:32:31,110 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 21:32:31,400 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 21:32:31,423 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e
2025-09-19 21:32:31,434 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb40a55d-d968-4eed-baa8-2eca533ff410
2025-09-19 21:32:31,504 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06344b48-9edc-4032-900e-c314d6fac118
2025-09-19 21:32:31,515 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06344b48-9edc-4032-900e-c314d6fac118
2025-09-19 21:32:31,526 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7997afac-98ec-489c-b83e-98dc537f336e
2025-09-19 21:32:31,533 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7997afac-98ec-489c-b83e-98dc537f336e
2025-09-19 21:32:31,539 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/699da5e7-8fb4-4452-80dd-34ad4ad2bdf9
2025-09-19 21:32:31,543 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 21:32:31,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06344b48-9edc-4032-900e-c314d6fac118
2025-09-19 21:32:31,550 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7997afac-98ec-489c-b83e-98dc537f336e
2025-09-19 21:32:31,561 - INFO - Verified VN network id 12 for VN 06344b48-9edc-4032-900e-c314d6fac118
2025-09-19 21:32:31,561 - INFO - Verifications in API Server for VN ctest-vn-31806920 passed
2025-09-19 21:32:31,561 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06344b48-9edc-4032-900e-c314d6fac118
2025-09-19 21:32:31,567 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7997afac-98ec-489c-b83e-98dc537f336e
2025-09-19 21:32:31,572 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7997afac-98ec-489c-b83e-98dc537f336e
2025-09-19 21:32:31,577 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/699da5e7-8fb4-4452-80dd-34ad4ad2bdf9
2025-09-19 21:32:31,586 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-31806920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04642084', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '447065038291484722', 'uuid-lslong': '10380448685409091864'}, 'enable': 'true', 'created': '2025-09-19T21:32:29', 'last-modified': '2025-09-19T21:32:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867277'}
2025-09-19 21:32:31,591 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 21:32:31,591 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31806920 passed
2025-09-19 21:32:31,591 - DEBUG - ====Verifying policy data for ctest-vn-31806920 in API_Server ======
2025-09-19 21:32:31,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 21:32:31,596 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e
2025-09-19 21:32:31,606 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb40a55d-d968-4eed-baa8-2eca533ff410
2025-09-19 21:32:31,680 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/06344b48-9edc-4032-900e-c314d6fac118
2025-09-19 21:32:31,688 - DEBUG - ==>Verifying data for policy with id: 8bd49fc0-85e0-4bdf-83f7-7dfcc1475dea, fqn: ['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-policy-allow-all-17327270']
2025-09-19 21:32:31,688 - INFO - VN ctest-vn-31806920 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 21:32:31,688 - DEBUG - Verifying the vn in opserver
2025-09-19 21:32:31,688 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-31806920 virtual network link through opserver 10.0.0.38
2025-09-19 21:32:31,688 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 21:32:31,977 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 21:32:32,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-31806920', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-31806920?flat'}
2025-09-19 21:32:32,029 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-31806920 is found in opserver
2025-09-19 21:32:32,037 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 21:32:32,041 - DEBUG - VRF ids for VN ctest-vn-31806920: {}
2025-09-19 21:32:32,041 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 21:32:32,045 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e
2025-09-19 21:32:32,055 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb40a55d-d968-4eed-baa8-2eca533ff410
2025-09-19 21:32:32,121 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71327f05-2b02-40a5-bea2-83eea2ffa8d3
2025-09-19 21:32:32,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71327f05-2b02-40a5-bea2-83eea2ffa8d3
2025-09-19 21:32:32,138 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46946468-9510-4482-a5b9-8998c1993dac
2025-09-19 21:32:32,144 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46946468-9510-4482-a5b9-8998c1993dac
2025-09-19 21:32:32,149 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d94b6699-97b6-442c-83d9-23b533ac7318
2025-09-19 21:32:32,154 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 21:32:32,154 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71327f05-2b02-40a5-bea2-83eea2ffa8d3
2025-09-19 21:32:32,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46946468-9510-4482-a5b9-8998c1993dac
2025-09-19 21:32:32,171 - INFO - Verified VN network id 13 for VN 71327f05-2b02-40a5-bea2-83eea2ffa8d3
2025-09-19 21:32:32,172 - INFO - Verifications in API Server for VN ctest-vn-82391186 passed
2025-09-19 21:32:32,172 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71327f05-2b02-40a5-bea2-83eea2ffa8d3
2025-09-19 21:32:32,179 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46946468-9510-4482-a5b9-8998c1993dac
2025-09-19 21:32:32,184 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/46946468-9510-4482-a5b9-8998c1993dac
2025-09-19 21:32:32,189 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d94b6699-97b6-442c-83d9-23b533ac7318
2025-09-19 21:32:32,198 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-82391186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04642084', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8156721535294521509', 'uuid-lslong': '13736686874393553107'}, 'enable': 'true', 'created': '2025-09-19T21:32:30', 'last-modified': '2025-09-19T21:32:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.267106'}
2025-09-19 21:32:32,203 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 21:32:32,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82391186 passed
2025-09-19 21:32:32,203 - DEBUG - ====Verifying policy data for ctest-vn-82391186 in API_Server ======
2025-09-19 21:32:32,203 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 21:32:32,208 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e
2025-09-19 21:32:32,218 - DEBUG - Requesting: http://10.0.0.38:8082/project/cb40a55d-d968-4eed-baa8-2eca533ff410
2025-09-19 21:32:32,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/71327f05-2b02-40a5-bea2-83eea2ffa8d3
2025-09-19 21:32:32,289 - DEBUG - ==>Verifying data for policy with id: 8bd49fc0-85e0-4bdf-83f7-7dfcc1475dea, fqn: ['default-domain', 'ctest-TestBasicPolicy-04642084', 'ctest-policy-allow-all-17327270']
2025-09-19 21:32:32,289 - INFO - VN ctest-vn-82391186 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 21:32:32,289 - DEBUG - Verifying the vn in opserver
2025-09-19 21:32:32,289 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-82391186 virtual network link through opserver 10.0.0.38
2025-09-19 21:32:32,290 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 21:32:32,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-82391186', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-82391186?flat'}
2025-09-19 21:32:32,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04642084:ctest-vn-82391186 is found in opserver
2025-09-19 21:32:32,306 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 21:32:32,310 - DEBUG - VRF ids for VN ctest-vn-82391186: {}
2025-09-19 21:32:32,368 - DEBUG - Services list from nova: [