2025-10-09 09:23:59,812 - INFO - Domain Default found not creating
2025-10-09 09:23:59,963 - INFO - Project ctest-TestBasicPolicy-75285997 not found, creating it
2025-10-09 09:24:00,411 - INFO - Created Project:ctest-TestBasicPolicy-75285997, ID : 6e728769-db45-4820-8758-1132e7ba8f6e
2025-10-09 09:24:01,791 - INFO - ================================================================================
2025-10-09 09:24:01,791 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 09:24:01,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-10-09 09:24:02,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-09 09:24:02,043 - INFO - Initial checks done. Running the testcase now
2025-10-09 09:24:02,043 - INFO -
2025-10-09 09:24:02,572 - DEBUG - Response for create_network : {'network': {'id': '48f3308c-f89a-4e70-9a82-67f1de18edf0', 'name': 'ctest-vn-68039429', 'tenant_id': '6e728769db45482087581132e7ba8f6e', 'project_id': '6e728769db45482087581132e7ba8f6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-vn-68039429'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 09:24:02,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '60207689-97ce-4c09-b5c0-dcef729e75af', 'name': '', 'tenant_id': '6e728769db45482087581132e7ba8f6e', 'network_id': '48f3308c-f89a-4e70-9a82-67f1de18edf0', 'ip_version': 4, 'cidr': '59.45.15.0/26', 'allocation_pools': [{'start': '59.45.15.2', 'end': '59.45.15.62'}], 'gateway_ip': '59.45.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.45.15.2', 'tags': [], 'project_id': '6e728769db45482087581132e7ba8f6e'}}
2025-10-09 09:24:02,786 - INFO - Created VN ctest-vn-68039429
2025-10-09 09:24:02,839 - DEBUG - VN ctest-vn-68039429 UUID is 48f3308c-f89a-4e70-9a82-67f1de18edf0
2025-10-09 09:24:03,151 - DEBUG - Response for create_network : {'network': {'id': '3bae5a4f-fe62-4f6f-89c5-e63e8e665fda', 'name': 'ctest-vn-12280777', 'tenant_id': '6e728769db45482087581132e7ba8f6e', 'project_id': '6e728769db45482087581132e7ba8f6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-vn-12280777'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 09:24:03,297 - DEBUG - Response for create_subnet : {'subnet': {'id': '8997ae0f-bca0-4d28-806e-2c05aab0304f', 'name': '', 'tenant_id': '6e728769db45482087581132e7ba8f6e', 'network_id': '3bae5a4f-fe62-4f6f-89c5-e63e8e665fda', 'ip_version': 4, 'cidr': '167.32.33.0/26', 'allocation_pools': [{'start': '167.32.33.2', 'end': '167.32.33.62'}], 'gateway_ip': '167.32.33.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.32.33.2', 'tags': [], 'project_id': '6e728769db45482087581132e7ba8f6e'}}
2025-10-09 09:24:03,314 - INFO - Created VN ctest-vn-12280777
2025-10-09 09:24:03,367 - DEBUG - VN ctest-vn-12280777 UUID is 3bae5a4f-fe62-4f6f-89c5-e63e8e665fda
2025-10-09 09:24:03,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-68039429, 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-75285997:ctest-vn-12280777, 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-10-09 09:24:03,809 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48f3308c-f89a-4e70-9a82-67f1de18edf0', 'name': 'ctest-vn-68039429', 'tenant_id': '6e728769db45482087581132e7ba8f6e', 'project_id': '6e728769db45482087581132e7ba8f6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60207689-97ce-4c09-b5c0-dcef729e75af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-vn-68039429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-policy-allow-all-50424245']], 'subnet_ipam': [{'subnet_cidr': '59.45.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 09:24:04,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bae5a4f-fe62-4f6f-89c5-e63e8e665fda', 'name': 'ctest-vn-12280777', 'tenant_id': '6e728769db45482087581132e7ba8f6e', 'project_id': '6e728769db45482087581132e7ba8f6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8997ae0f-bca0-4d28-806e-2c05aab0304f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-vn-12280777'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-policy-allow-all-50424245']], 'subnet_ipam': [{'subnet_cidr': '167.32.33.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 09:24:04,231 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 09:24:04,545 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 09:24:04,579 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818
2025-10-09 09:24:04,604 - DEBUG - Requesting: http://10.0.0.33:8082/project/6e728769-db45-4820-8758-1132e7ba8f6e
2025-10-09 09:24:04,656 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48f3308c-f89a-4e70-9a82-67f1de18edf0
2025-10-09 09:24:04,671 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48f3308c-f89a-4e70-9a82-67f1de18edf0
2025-10-09 09:24:04,693 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21c5b690-b56e-4835-84e6-36c3c16bbae3
2025-10-09 09:24:04,706 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21c5b690-b56e-4835-84e6-36c3c16bbae3
2025-10-09 09:24:04,716 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b802d1fc-ec76-46ad-8f62-9a887f36ea2f
2025-10-09 09:24:04,729 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 09:24:04,729 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48f3308c-f89a-4e70-9a82-67f1de18edf0
2025-10-09 09:24:04,751 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21c5b690-b56e-4835-84e6-36c3c16bbae3
2025-10-09 09:24:04,772 - INFO - Verified VN network id 12 for VN 48f3308c-f89a-4e70-9a82-67f1de18edf0
2025-10-09 09:24:04,772 - INFO - Verifications in API Server for VN ctest-vn-68039429 passed
2025-10-09 09:24:04,773 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48f3308c-f89a-4e70-9a82-67f1de18edf0
2025-10-09 09:24:04,784 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21c5b690-b56e-4835-84e6-36c3c16bbae3
2025-10-09 09:24:04,797 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/21c5b690-b56e-4835-84e6-36c3c16bbae3
2025-10-09 09:24:04,807 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b802d1fc-ec76-46ad-8f62-9a887f36ea2f
2025-10-09 09:24:04,824 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-68039429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75285997', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5256598572095917680', 'uuid-lslong': '11133575517324242416'}, 'enable': 'true', 'created': '2025-10-09T09:24:02', 'last-modified': '2025-10-09T09:24:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037931'}
2025-10-09 09:24:04,836 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 09:24:04,836 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68039429 passed
2025-10-09 09:24:04,836 - DEBUG - ====Verifying policy data for ctest-vn-68039429 in API_Server ======
2025-10-09 09:24:04,836 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 09:24:04,844 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818
2025-10-09 09:24:04,859 - DEBUG - Requesting: http://10.0.0.33:8082/project/6e728769-db45-4820-8758-1132e7ba8f6e
2025-10-09 09:24:04,958 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48f3308c-f89a-4e70-9a82-67f1de18edf0
2025-10-09 09:24:04,969 - DEBUG - ==>Verifying data for policy with id: 5179b4a0-1734-4421-9cea-7a414cd5c2fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-policy-allow-all-50424245']
2025-10-09 09:24:04,969 - INFO - VN ctest-vn-68039429 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 09:24:04,969 - DEBUG - Verifying the vn in opserver
2025-10-09 09:24:04,969 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-68039429 virtual network link through opserver 10.0.0.33
2025-10-09 09:24:04,969 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 09:24:05,262 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 09:24:05,310 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-68039429', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-68039429?flat'}
2025-10-09 09:24:05,310 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-68039429 is found in opserver
2025-10-09 09:24:05,318 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 09:24:05,321 - DEBUG - VRF ids for VN ctest-vn-68039429: {}
2025-10-09 09:24:05,322 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 09:24:05,326 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818
2025-10-09 09:24:05,337 - DEBUG - Requesting: http://10.0.0.33:8082/project/6e728769-db45-4820-8758-1132e7ba8f6e
2025-10-09 09:24:05,405 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bae5a4f-fe62-4f6f-89c5-e63e8e665fda
2025-10-09 09:24:05,415 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bae5a4f-fe62-4f6f-89c5-e63e8e665fda
2025-10-09 09:24:05,423 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f84ba627-2bb1-4c8b-9ba0-12f6bdb23173
2025-10-09 09:24:05,428 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f84ba627-2bb1-4c8b-9ba0-12f6bdb23173
2025-10-09 09:24:05,435 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e42a627-2b60-4e76-9e6f-18513c7a8c64
2025-10-09 09:24:05,441 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 09:24:05,441 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bae5a4f-fe62-4f6f-89c5-e63e8e665fda
2025-10-09 09:24:05,448 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f84ba627-2bb1-4c8b-9ba0-12f6bdb23173
2025-10-09 09:24:05,460 - INFO - Verified VN network id 13 for VN 3bae5a4f-fe62-4f6f-89c5-e63e8e665fda
2025-10-09 09:24:05,460 - INFO - Verifications in API Server for VN ctest-vn-12280777 passed
2025-10-09 09:24:05,460 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bae5a4f-fe62-4f6f-89c5-e63e8e665fda
2025-10-09 09:24:05,469 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f84ba627-2bb1-4c8b-9ba0-12f6bdb23173
2025-10-09 09:24:05,475 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f84ba627-2bb1-4c8b-9ba0-12f6bdb23173
2025-10-09 09:24:05,483 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8e42a627-2b60-4e76-9e6f-18513c7a8c64
2025-10-09 09:24:05,494 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-12280777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75285997', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4300473993802174319', 'uuid-lslong': '9927594109959561178'}, 'enable': 'true', 'created': '2025-10-09T09:24:03', 'last-modified': '2025-10-09T09:24:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.477693'}
2025-10-09 09:24:05,500 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 09:24:05,500 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12280777 passed
2025-10-09 09:24:05,500 - DEBUG - ====Verifying policy data for ctest-vn-12280777 in API_Server ======
2025-10-09 09:24:05,500 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-09 09:24:05,507 - DEBUG - Requesting: http://10.0.0.33:8082/domain/167dd854-1fc3-4ffe-a685-ab45cd131818
2025-10-09 09:24:05,517 - DEBUG - Requesting: http://10.0.0.33:8082/project/6e728769-db45-4820-8758-1132e7ba8f6e
2025-10-09 09:24:05,583 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bae5a4f-fe62-4f6f-89c5-e63e8e665fda
2025-10-09 09:24:05,590 - DEBUG - ==>Verifying data for policy with id: 5179b4a0-1734-4421-9cea-7a414cd5c2fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-75285997', 'ctest-policy-allow-all-50424245']
2025-10-09 09:24:05,590 - INFO - VN ctest-vn-12280777 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 09:24:05,590 - DEBUG - Verifying the vn in opserver
2025-10-09 09:24:05,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-12280777 virtual network link through opserver 10.0.0.33
2025-10-09 09:24:05,590 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-09 09:24:05,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-12280777', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-12280777?flat'}
2025-10-09 09:24:05,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75285997:ctest-vn-12280777 is found in opserver
2025-10-09 09:24:05,606 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 09:24:05,610 - DEBUG - VRF ids for VN ctest-vn-12280777: {}
2025-10-09 09:24:05,666 - DEBUG - Services list from nova: [