2025-01-07 18:41:56,123 - INFO - Domain Default found not creating
2025-01-07 18:41:56,265 - INFO - Project ctest-TestBasicPolicy-16124435 not found, creating it
2025-01-07 18:41:56,752 - INFO - Created Project:ctest-TestBasicPolicy-16124435, ID : efe39e28-7783-4c92-a1b2-1d19dd80323c
2025-01-07 18:41:58,240 - INFO - ================================================================================
2025-01-07 18:41:58,240 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 18:41:58,240 - 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-01-07 18:41:58,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.20': '0'}} with
2025-01-07 18:41:58,495 - INFO - Initial checks done. Running the testcase now
2025-01-07 18:41:58,495 - INFO -
2025-01-07 18:41:59,033 - DEBUG - Response for create_network : {'network': {'id': '9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c', 'name': 'ctest-vn-56760331', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-56760331'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 18:41:59,213 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0a09370-0927-4efc-8581-447866a50cf3', 'name': '', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'network_id': '9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c', 'ip_version': 4, 'cidr': '150.148.10.192/26', 'allocation_pools': [{'start': '150.148.10.194', 'end': '150.148.10.254'}], 'gateway_ip': '150.148.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.148.10.194', 'tags': [], 'project_id': 'efe39e2877834c92a1b21d19dd80323c'}}
2025-01-07 18:41:59,232 - INFO - Created VN ctest-vn-56760331
2025-01-07 18:41:59,285 - DEBUG - VN ctest-vn-56760331 UUID is 9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c
2025-01-07 18:41:59,579 - DEBUG - Response for create_network : {'network': {'id': '4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda', 'name': 'ctest-vn-08512973', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-08512973'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 18:41:59,719 - DEBUG - Response for create_subnet : {'subnet': {'id': '5629eaba-c2ec-4ce4-a898-d372bb104011', 'name': '', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'network_id': '4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda', 'ip_version': 4, 'cidr': '4.85.60.64/26', 'allocation_pools': [{'start': '4.85.60.66', 'end': '4.85.60.126'}], 'gateway_ip': '4.85.60.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.85.60.66', 'tags': [], 'project_id': 'efe39e2877834c92a1b21d19dd80323c'}}
2025-01-07 18:41:59,738 - INFO - Created VN ctest-vn-08512973
2025-01-07 18:41:59,793 - DEBUG - VN ctest-vn-08512973 UUID is 4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda
2025-01-07 18:41:59,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331, 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-16124435:ctest-vn-08512973, 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-01-07 18:42:00,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c', 'name': 'ctest-vn-56760331', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0a09370-0927-4efc-8581-447866a50cf3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-56760331'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195']], 'subnet_ipam': [{'subnet_cidr': '150.148.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 18:42:00,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda', 'name': 'ctest-vn-08512973', 'tenant_id': 'efe39e2877834c92a1b21d19dd80323c', 'project_id': 'efe39e2877834c92a1b21d19dd80323c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5629eaba-c2ec-4ce4-a898-d372bb104011'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-vn-08512973'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195']], 'subnet_ipam': [{'subnet_cidr': '4.85.60.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 18:42:00,605 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 18:42:00,906 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 18:42:00,932 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d
2025-01-07 18:42:00,944 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c
2025-01-07 18:42:01,019 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c
2025-01-07 18:42:01,031 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c
2025-01-07 18:42:01,044 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274
2025-01-07 18:42:01,052 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274
2025-01-07 18:42:01,059 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c7669756-875f-475d-bd53-50d0bc240ac1
2025-01-07 18:42:01,065 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 18:42:01,065 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c
2025-01-07 18:42:01,074 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274
2025-01-07 18:42:01,088 - INFO - Verified VN network id 7 for VN 9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c
2025-01-07 18:42:01,088 - INFO - Verifications in API Server for VN ctest-vn-56760331 passed
2025-01-07 18:42:01,088 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c
2025-01-07 18:42:01,098 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274
2025-01-07 18:42:01,105 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e1872731-9bb0-4a51-a6e4-c483ef341274
2025-01-07 18:42:01,111 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c7669756-875f-475d-bd53-50d0bc240ac1
2025-01-07 18:42:01,124 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16124435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11182093328912893518', 'uuid-lslong': '12909600008192241468'}, 'enable': 'true', 'created': '2025-01-07T18:41:59', 'last-modified': '2025-01-07T18:42:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906850'}
2025-01-07 18:42:01,130 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 18:42:01,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56760331 passed
2025-01-07 18:42:01,131 - DEBUG - ====Verifying policy data for ctest-vn-56760331 in API_Server ======
2025-01-07 18:42:01,131 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 18:42:01,136 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d
2025-01-07 18:42:01,147 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c
2025-01-07 18:42:01,224 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9b2ec6a3-2b1e-464e-b328-1ccf38adaf3c
2025-01-07 18:42:01,237 - DEBUG - ==>Verifying data for policy with id: 9c9a939d-5acc-43fa-8e21-5e4659afb19d, fqn: ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195']
2025-01-07 18:42:01,237 - INFO - VN ctest-vn-56760331 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 18:42:01,238 - DEBUG - Verifying the vn in opserver
2025-01-07 18:42:01,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331 virtual network link through opserver 10.0.0.33
2025-01-07 18:42:01,238 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-07 18:42:01,533 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-07 18:42:01,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331?flat'}
2025-01-07 18:42:01,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-56760331 is found in opserver
2025-01-07 18:42:01,595 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 18:42:01,600 - DEBUG - VRF ids for VN ctest-vn-56760331: {}
2025-01-07 18:42:01,600 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 18:42:01,606 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d
2025-01-07 18:42:01,620 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c
2025-01-07 18:42:01,692 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda
2025-01-07 18:42:01,705 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda
2025-01-07 18:42:01,719 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940
2025-01-07 18:42:01,726 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940
2025-01-07 18:42:01,734 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6a6c656c-8d98-42b5-8cba-05032d7645e5
2025-01-07 18:42:01,741 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 18:42:01,741 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda
2025-01-07 18:42:01,751 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940
2025-01-07 18:42:01,768 - INFO - Verified VN network id 8 for VN 4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda
2025-01-07 18:42:01,769 - INFO - Verifications in API Server for VN ctest-vn-08512973 passed
2025-01-07 18:42:01,769 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda
2025-01-07 18:42:01,781 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940
2025-01-07 18:42:01,789 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f95d858b-882b-4dc8-b2a1-fc8bee107940
2025-01-07 18:42:01,795 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6a6c656c-8d98-42b5-8cba-05032d7645e5
2025-01-07 18:42:01,810 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16124435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5519899261582655566', 'uuid-lslong': '12962417070616722394'}, 'enable': 'true', 'created': '2025-01-07T18:41:59', 'last-modified': '2025-01-07T18:42:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350303'}
2025-01-07 18:42:01,817 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 18:42:01,818 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08512973 passed
2025-01-07 18:42:01,818 - DEBUG - ====Verifying policy data for ctest-vn-08512973 in API_Server ======
2025-01-07 18:42:01,818 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-01-07 18:42:01,824 - DEBUG - Requesting: http://10.0.0.33:8082/domain/55e8d94e-79ac-41b8-83db-aa344982376d
2025-01-07 18:42:01,835 - DEBUG - Requesting: http://10.0.0.33:8082/project/efe39e28-7783-4c92-a1b2-1d19dd80323c
2025-01-07 18:42:01,912 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4c9a9f21-fa93-404e-b3e3-c1a5dc91bbda
2025-01-07 18:42:01,923 - DEBUG - ==>Verifying data for policy with id: 9c9a939d-5acc-43fa-8e21-5e4659afb19d, fqn: ['default-domain', 'ctest-TestBasicPolicy-16124435', 'ctest-policy-allow-all-25177195']
2025-01-07 18:42:01,923 - INFO - VN ctest-vn-08512973 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 18:42:01,923 - DEBUG - Verifying the vn in opserver
2025-01-07 18:42:01,923 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973 virtual network link through opserver 10.0.0.33
2025-01-07 18:42:01,923 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-01-07 18:42:01,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973?flat'}
2025-01-07 18:42:01,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16124435:ctest-vn-08512973 is found in opserver
2025-01-07 18:42:01,945 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 18:42:01,950 - DEBUG - VRF ids for VN ctest-vn-08512973: {}
2025-01-07 18:42:02,006 - DEBUG - Services list from nova: [