2025-07-21 02:25:02,334 - INFO - Domain Default found not creating
2025-07-21 02:25:02,474 - INFO - Project ctest-TestBasicPolicy-62031222 not found, creating it
2025-07-21 02:25:02,938 - INFO - Created Project:ctest-TestBasicPolicy-62031222, ID : 0ed3a033-3860-47b1-a41a-28f5eac0b4ff
2025-07-21 02:25:04,438 - INFO - ================================================================================
2025-07-21 02:25:04,438 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 02:25:04,439 - 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-21 02:25:04,706 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-07-21 02:25:04,706 - INFO - Initial checks done. Running the testcase now
2025-07-21 02:25:04,706 - INFO -
2025-07-21 02:25:05,276 - DEBUG - Response for create_network : {'network': {'id': '967592cb-7fff-42be-b647-474d5641459d', 'name': 'ctest-vn-55179396', 'tenant_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'project_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-vn-55179396'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:25:05,439 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efd4e13c-ec50-440f-bf11-dc0ee1475a15', 'name': '', 'tenant_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'network_id': '967592cb-7fff-42be-b647-474d5641459d', 'ip_version': 4, 'cidr': '18.74.158.0/26', 'allocation_pools': [{'start': '18.74.158.2', 'end': '18.74.158.62'}], 'gateway_ip': '18.74.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.74.158.2', 'tags': [], 'project_id': '0ed3a033386047b1a41a28f5eac0b4ff'}}
2025-07-21 02:25:05,457 - INFO - Created VN ctest-vn-55179396
2025-07-21 02:25:05,513 - DEBUG - VN ctest-vn-55179396 UUID is 967592cb-7fff-42be-b647-474d5641459d
2025-07-21 02:25:05,812 - DEBUG - Response for create_network : {'network': {'id': 'f88eb5a6-fee4-4143-b849-c5928d8d3437', 'name': 'ctest-vn-04333026', 'tenant_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'project_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-vn-04333026'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:25:06,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '386fa8d4-e83f-4275-b539-0b95a24a8d1d', 'name': '', 'tenant_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'network_id': 'f88eb5a6-fee4-4143-b849-c5928d8d3437', 'ip_version': 4, 'cidr': '165.63.249.64/26', 'allocation_pools': [{'start': '165.63.249.66', 'end': '165.63.249.126'}], 'gateway_ip': '165.63.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.63.249.66', 'tags': [], 'project_id': '0ed3a033386047b1a41a28f5eac0b4ff'}}
2025-07-21 02:25:06,035 - INFO - Created VN ctest-vn-04333026
2025-07-21 02:25:06,089 - DEBUG - VN ctest-vn-04333026 UUID is f88eb5a6-fee4-4143-b849-c5928d8d3437
2025-07-21 02:25:06,201 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-55179396, 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-62031222:ctest-vn-04333026, 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-21 02:25:06,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '967592cb-7fff-42be-b647-474d5641459d', 'name': 'ctest-vn-55179396', 'tenant_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'project_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['efd4e13c-ec50-440f-bf11-dc0ee1475a15'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-vn-55179396'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-policy-allow-all-28398809']], 'subnet_ipam': [{'subnet_cidr': '18.74.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:25:06,770 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f88eb5a6-fee4-4143-b849-c5928d8d3437', 'name': 'ctest-vn-04333026', 'tenant_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'project_id': '0ed3a033386047b1a41a28f5eac0b4ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['386fa8d4-e83f-4275-b539-0b95a24a8d1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-vn-04333026'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-policy-allow-all-28398809']], 'subnet_ipam': [{'subnet_cidr': '165.63.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:25:06,945 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 02:25:07,247 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 02:25:07,282 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4af40b2f-28a5-456b-96cb-033647403708
2025-07-21 02:25:07,296 - DEBUG - Requesting: http://10.0.0.242:8082/project/0ed3a033-3860-47b1-a41a-28f5eac0b4ff
2025-07-21 02:25:07,374 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/967592cb-7fff-42be-b647-474d5641459d
2025-07-21 02:25:07,388 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/967592cb-7fff-42be-b647-474d5641459d
2025-07-21 02:25:07,398 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b9e471d-77ee-43da-bd4d-1a3c7452c842
2025-07-21 02:25:07,405 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b9e471d-77ee-43da-bd4d-1a3c7452c842
2025-07-21 02:25:07,413 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4655787f-64db-435f-8efa-9ec54c59d382
2025-07-21 02:25:07,422 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 02:25:07,422 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/967592cb-7fff-42be-b647-474d5641459d
2025-07-21 02:25:07,433 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b9e471d-77ee-43da-bd4d-1a3c7452c842
2025-07-21 02:25:07,448 - INFO - Verified VN network id 8 for VN 967592cb-7fff-42be-b647-474d5641459d
2025-07-21 02:25:07,448 - INFO - Verifications in API Server for VN ctest-vn-55179396 passed
2025-07-21 02:25:07,448 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/967592cb-7fff-42be-b647-474d5641459d
2025-07-21 02:25:07,459 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b9e471d-77ee-43da-bd4d-1a3c7452c842
2025-07-21 02:25:07,468 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/6b9e471d-77ee-43da-bd4d-1a3c7452c842
2025-07-21 02:25:07,476 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/4655787f-64db-435f-8efa-9ec54c59d382
2025-07-21 02:25:07,490 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-55179396', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62031222', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10841733080687788734', 'uuid-lslong': '13134545235734513053'}, 'enable': 'true', 'created': '2025-07-21T02:25:05', 'last-modified': '2025-07-21T02:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990149'}
2025-07-21 02:25:07,497 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 02:25:07,497 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55179396 passed
2025-07-21 02:25:07,497 - DEBUG - ====Verifying policy data for ctest-vn-55179396 in API_Server ======
2025-07-21 02:25:07,497 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 02:25:07,503 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4af40b2f-28a5-456b-96cb-033647403708
2025-07-21 02:25:07,518 - DEBUG - Requesting: http://10.0.0.242:8082/project/0ed3a033-3860-47b1-a41a-28f5eac0b4ff
2025-07-21 02:25:07,594 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/967592cb-7fff-42be-b647-474d5641459d
2025-07-21 02:25:07,605 - DEBUG - ==>Verifying data for policy with id: 80a1a02f-631d-4dd7-9b35-958dd4cf333e, fqn: ['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-policy-allow-all-28398809']
2025-07-21 02:25:07,605 - INFO - VN ctest-vn-55179396 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 02:25:07,605 - DEBUG - Verifying the vn in opserver
2025-07-21 02:25:07,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-55179396 virtual network link through opserver 10.0.0.242
2025-07-21 02:25:07,606 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-21 02:25:07,901 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-21 02:25:07,958 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-55179396', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-55179396?flat'}
2025-07-21 02:25:07,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-55179396 is found in opserver
2025-07-21 02:25:07,970 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 02:25:07,976 - DEBUG - VRF ids for VN ctest-vn-55179396: {}
2025-07-21 02:25:07,976 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 02:25:07,982 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4af40b2f-28a5-456b-96cb-033647403708
2025-07-21 02:25:07,995 - DEBUG - Requesting: http://10.0.0.242:8082/project/0ed3a033-3860-47b1-a41a-28f5eac0b4ff
2025-07-21 02:25:08,074 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f88eb5a6-fee4-4143-b849-c5928d8d3437
2025-07-21 02:25:08,087 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f88eb5a6-fee4-4143-b849-c5928d8d3437
2025-07-21 02:25:08,098 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/286d9db6-600e-4395-8752-db8a5620df29
2025-07-21 02:25:08,106 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/286d9db6-600e-4395-8752-db8a5620df29
2025-07-21 02:25:08,113 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6f240386-b64f-43b8-9e2b-6ae24c771709
2025-07-21 02:25:08,121 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 02:25:08,121 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f88eb5a6-fee4-4143-b849-c5928d8d3437
2025-07-21 02:25:08,133 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/286d9db6-600e-4395-8752-db8a5620df29
2025-07-21 02:25:08,148 - INFO - Verified VN network id 9 for VN f88eb5a6-fee4-4143-b849-c5928d8d3437
2025-07-21 02:25:08,148 - INFO - Verifications in API Server for VN ctest-vn-04333026 passed
2025-07-21 02:25:08,148 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f88eb5a6-fee4-4143-b849-c5928d8d3437
2025-07-21 02:25:08,159 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/286d9db6-600e-4395-8752-db8a5620df29
2025-07-21 02:25:08,165 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/286d9db6-600e-4395-8752-db8a5620df29
2025-07-21 02:25:08,173 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6f240386-b64f-43b8-9e2b-6ae24c771709
2025-07-21 02:25:08,188 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-04333026', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62031222', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17910452496944611651', 'uuid-lslong': '13279362209509356599'}, 'enable': 'true', 'created': '2025-07-21T02:25:05', 'last-modified': '2025-07-21T02:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.448165'}
2025-07-21 02:25:08,194 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 02:25:08,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04333026 passed
2025-07-21 02:25:08,194 - DEBUG - ====Verifying policy data for ctest-vn-04333026 in API_Server ======
2025-07-21 02:25:08,194 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 02:25:08,202 - DEBUG - Requesting: http://10.0.0.242:8082/domain/4af40b2f-28a5-456b-96cb-033647403708
2025-07-21 02:25:08,215 - DEBUG - Requesting: http://10.0.0.242:8082/project/0ed3a033-3860-47b1-a41a-28f5eac0b4ff
2025-07-21 02:25:08,298 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f88eb5a6-fee4-4143-b849-c5928d8d3437
2025-07-21 02:25:08,308 - DEBUG - ==>Verifying data for policy with id: 80a1a02f-631d-4dd7-9b35-958dd4cf333e, fqn: ['default-domain', 'ctest-TestBasicPolicy-62031222', 'ctest-policy-allow-all-28398809']
2025-07-21 02:25:08,308 - INFO - VN ctest-vn-04333026 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 02:25:08,308 - DEBUG - Verifying the vn in opserver
2025-07-21 02:25:08,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-04333026 virtual network link through opserver 10.0.0.242
2025-07-21 02:25:08,308 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-21 02:25:08,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-04333026', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-04333026?flat'}
2025-07-21 02:25:08,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62031222:ctest-vn-04333026 is found in opserver
2025-07-21 02:25:08,330 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 02:25:08,335 - DEBUG - VRF ids for VN ctest-vn-04333026: {}
2025-07-21 02:25:08,388 - DEBUG - Services list from nova: [