2025-05-15 02:11:03,626 - INFO - Domain Default found not creating
2025-05-15 02:11:03,786 - INFO - Project ctest-TestBasicPolicy-58758994 not found, creating it
2025-05-15 02:11:04,270 - INFO - Created Project:ctest-TestBasicPolicy-58758994, ID : f092c132-2804-483b-bd01-ed789678b73e
2025-05-15 02:11:05,731 - INFO - ================================================================================
2025-05-15 02:11:05,732 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-15 02:11:05,732 - 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-05-15 02:11:05,986 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with
2025-05-15 02:11:05,986 - INFO - Initial checks done. Running the testcase now
2025-05-15 02:11:05,986 - INFO -
2025-05-15 02:11:06,558 - DEBUG - Response for create_network : {'network': {'id': '9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3', 'name': 'ctest-vn-47166989', 'tenant_id': 'f092c1322804483bbd01ed789678b73e', 'project_id': 'f092c1322804483bbd01ed789678b73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-vn-47166989'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:11:06,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '67a853f0-16b0-443a-9829-d8616f315903', 'name': '', 'tenant_id': 'f092c1322804483bbd01ed789678b73e', 'network_id': '9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3', 'ip_version': 4, 'cidr': '174.212.56.0/26', 'allocation_pools': [{'start': '174.212.56.2', 'end': '174.212.56.62'}], 'gateway_ip': '174.212.56.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.212.56.2', 'tags': [], 'project_id': 'f092c1322804483bbd01ed789678b73e'}}
2025-05-15 02:11:06,800 - INFO - Created VN ctest-vn-47166989
2025-05-15 02:11:06,855 - DEBUG - VN ctest-vn-47166989 UUID is 9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3
2025-05-15 02:11:07,145 - DEBUG - Response for create_network : {'network': {'id': '30d0bcce-f560-490f-9634-ad9c4ec2f10e', 'name': 'ctest-vn-97591889', 'tenant_id': 'f092c1322804483bbd01ed789678b73e', 'project_id': 'f092c1322804483bbd01ed789678b73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-vn-97591889'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:11:07,342 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c012c4b3-0ec4-40c8-8336-185470d6f062', 'name': '', 'tenant_id': 'f092c1322804483bbd01ed789678b73e', 'network_id': '30d0bcce-f560-490f-9634-ad9c4ec2f10e', 'ip_version': 4, 'cidr': '126.161.78.64/26', 'allocation_pools': [{'start': '126.161.78.66', 'end': '126.161.78.126'}], 'gateway_ip': '126.161.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.161.78.66', 'tags': [], 'project_id': 'f092c1322804483bbd01ed789678b73e'}}
2025-05-15 02:11:07,359 - INFO - Created VN ctest-vn-97591889
2025-05-15 02:11:07,411 - DEBUG - VN ctest-vn-97591889 UUID is 30d0bcce-f560-490f-9634-ad9c4ec2f10e
2025-05-15 02:11:07,528 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-47166989, 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-58758994:ctest-vn-97591889, 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-05-15 02:11:07,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3', 'name': 'ctest-vn-47166989', 'tenant_id': 'f092c1322804483bbd01ed789678b73e', 'project_id': 'f092c1322804483bbd01ed789678b73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67a853f0-16b0-443a-9829-d8616f315903'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-vn-47166989'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-policy-allow-all-34939478']], 'subnet_ipam': [{'subnet_cidr': '174.212.56.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:11:08,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30d0bcce-f560-490f-9634-ad9c4ec2f10e', 'name': 'ctest-vn-97591889', 'tenant_id': 'f092c1322804483bbd01ed789678b73e', 'project_id': 'f092c1322804483bbd01ed789678b73e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c012c4b3-0ec4-40c8-8336-185470d6f062'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-vn-97591889'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-policy-allow-all-34939478']], 'subnet_ipam': [{'subnet_cidr': '126.161.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:11:08,284 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-15 02:11:08,589 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-15 02:11:08,618 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e629dc6f-73c2-422d-a1fe-87937040b350
2025-05-15 02:11:08,634 - DEBUG - Requesting: http://10.0.0.141:8082/project/f092c132-2804-483b-bd01-ed789678b73e
2025-05-15 02:11:08,716 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3
2025-05-15 02:11:08,732 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3
2025-05-15 02:11:08,747 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4d981b94-6f62-4375-9496-e2c027510d52
2025-05-15 02:11:08,757 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4d981b94-6f62-4375-9496-e2c027510d52
2025-05-15 02:11:08,766 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/6e84c51f-b7c2-412b-a1f6-e9da395257a6
2025-05-15 02:11:08,775 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 02:11:08,775 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3
2025-05-15 02:11:08,786 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4d981b94-6f62-4375-9496-e2c027510d52
2025-05-15 02:11:08,802 - INFO - Verified VN network id 9 for VN 9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3
2025-05-15 02:11:08,803 - INFO - Verifications in API Server for VN ctest-vn-47166989 passed
2025-05-15 02:11:08,803 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3
2025-05-15 02:11:08,813 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4d981b94-6f62-4375-9496-e2c027510d52
2025-05-15 02:11:08,821 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/4d981b94-6f62-4375-9496-e2c027510d52
2025-05-15 02:11:08,828 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/6e84c51f-b7c2-412b-a1f6-e9da395257a6
2025-05-15 02:11:08,841 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-47166989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58758994', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11302324171056038354', 'uuid-lslong': '9588432806575137987'}, 'enable': 'true', 'created': '2025-05-15T02:11:06', 'last-modified': '2025-05-15T02:11:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036249'}
2025-05-15 02:11:08,848 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 02:11:08,848 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47166989 passed
2025-05-15 02:11:08,848 - DEBUG - ====Verifying policy data for ctest-vn-47166989 in API_Server ======
2025-05-15 02:11:08,848 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-15 02:11:08,854 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e629dc6f-73c2-422d-a1fe-87937040b350
2025-05-15 02:11:08,868 - DEBUG - Requesting: http://10.0.0.141:8082/project/f092c132-2804-483b-bd01-ed789678b73e
2025-05-15 02:11:08,948 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9cd9ebf3-881b-41d2-8510-f4d5fc9ce4c3
2025-05-15 02:11:08,960 - DEBUG - ==>Verifying data for policy with id: c7ac4981-f256-4edd-816e-44f325f5fb7b, fqn: ['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-policy-allow-all-34939478']
2025-05-15 02:11:08,960 - INFO - VN ctest-vn-47166989 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 02:11:08,960 - DEBUG - Verifying the vn in opserver
2025-05-15 02:11:08,960 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-47166989 virtual network link through opserver 10.0.0.141
2025-05-15 02:11:08,960 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-05-15 02:11:09,252 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-05-15 02:11:09,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-47166989', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-47166989?flat'}
2025-05-15 02:11:09,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-47166989 is found in opserver
2025-05-15 02:11:09,326 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 02:11:09,331 - DEBUG - VRF ids for VN ctest-vn-47166989: {}
2025-05-15 02:11:09,332 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-15 02:11:09,338 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e629dc6f-73c2-422d-a1fe-87937040b350
2025-05-15 02:11:09,351 - DEBUG - Requesting: http://10.0.0.141:8082/project/f092c132-2804-483b-bd01-ed789678b73e
2025-05-15 02:11:09,428 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30d0bcce-f560-490f-9634-ad9c4ec2f10e
2025-05-15 02:11:09,441 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30d0bcce-f560-490f-9634-ad9c4ec2f10e
2025-05-15 02:11:09,453 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/60721d0d-b0fb-4df3-ba67-64a0bc2de254
2025-05-15 02:11:09,464 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/60721d0d-b0fb-4df3-ba67-64a0bc2de254
2025-05-15 02:11:09,473 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e27726ae-6738-4b47-826c-f94aaafc94bc
2025-05-15 02:11:09,483 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 02:11:09,483 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30d0bcce-f560-490f-9634-ad9c4ec2f10e
2025-05-15 02:11:09,496 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/60721d0d-b0fb-4df3-ba67-64a0bc2de254
2025-05-15 02:11:09,516 - INFO - Verified VN network id 10 for VN 30d0bcce-f560-490f-9634-ad9c4ec2f10e
2025-05-15 02:11:09,516 - INFO - Verifications in API Server for VN ctest-vn-97591889 passed
2025-05-15 02:11:09,516 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30d0bcce-f560-490f-9634-ad9c4ec2f10e
2025-05-15 02:11:09,529 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/60721d0d-b0fb-4df3-ba67-64a0bc2de254
2025-05-15 02:11:09,539 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/60721d0d-b0fb-4df3-ba67-64a0bc2de254
2025-05-15 02:11:09,548 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e27726ae-6738-4b47-826c-f94aaafc94bc
2025-05-15 02:11:09,564 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-97591889', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58758994', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3517518906042370319', 'uuid-lslong': '10823466691326046478'}, 'enable': 'true', 'created': '2025-05-15T02:11:07', 'last-modified': '2025-05-15T02:11:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461575'}
2025-05-15 02:11:09,572 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 02:11:09,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97591889 passed
2025-05-15 02:11:09,572 - DEBUG - ====Verifying policy data for ctest-vn-97591889 in API_Server ======
2025-05-15 02:11:09,573 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-05-15 02:11:09,580 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e629dc6f-73c2-422d-a1fe-87937040b350
2025-05-15 02:11:09,595 - DEBUG - Requesting: http://10.0.0.141:8082/project/f092c132-2804-483b-bd01-ed789678b73e
2025-05-15 02:11:09,668 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/30d0bcce-f560-490f-9634-ad9c4ec2f10e
2025-05-15 02:11:09,682 - DEBUG - ==>Verifying data for policy with id: c7ac4981-f256-4edd-816e-44f325f5fb7b, fqn: ['default-domain', 'ctest-TestBasicPolicy-58758994', 'ctest-policy-allow-all-34939478']
2025-05-15 02:11:09,682 - INFO - VN ctest-vn-97591889 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 02:11:09,682 - DEBUG - Verifying the vn in opserver
2025-05-15 02:11:09,682 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-97591889 virtual network link through opserver 10.0.0.141
2025-05-15 02:11:09,682 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-05-15 02:11:09,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-97591889', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-97591889?flat'}
2025-05-15 02:11:09,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58758994:ctest-vn-97591889 is found in opserver
2025-05-15 02:11:09,707 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 02:11:09,713 - DEBUG - VRF ids for VN ctest-vn-97591889: {}
2025-05-15 02:11:09,771 - DEBUG - Services list from nova: [