2025-03-30 14:28:00,720 - INFO - Domain Default found not creating
2025-03-30 14:28:00,860 - INFO - Project ctest-TestBasicPolicy-78169400 not found, creating it
2025-03-30 14:28:01,323 - INFO - Created Project:ctest-TestBasicPolicy-78169400, ID : 894cb4da-a9aa-4083-9435-3abadce399f3
2025-03-30 14:28:02,754 - INFO - ================================================================================
2025-03-30 14:28:02,754 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-30 14:28:02,754 - 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-03-30 14:28:03,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.12': '0'}} with
2025-03-30 14:28:03,011 - INFO - Initial checks done. Running the testcase now
2025-03-30 14:28:03,011 - INFO -
2025-03-30 14:28:03,567 - DEBUG - Response for create_network : {'network': {'id': 'ab7283a3-02f9-41bf-9dcb-71e951e34f51', 'name': 'ctest-vn-90881368', 'tenant_id': '894cb4daa9aa408394353abadce399f3', 'project_id': '894cb4daa9aa408394353abadce399f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-vn-90881368'], 'port_security_enabled': True, 'description': ''}}
2025-03-30 14:28:03,741 - DEBUG - Response for create_subnet : {'subnet': {'id': '1398f8d5-eae8-4203-9d3f-145baed2e73f', 'name': '', 'tenant_id': '894cb4daa9aa408394353abadce399f3', 'network_id': 'ab7283a3-02f9-41bf-9dcb-71e951e34f51', 'ip_version': 4, 'cidr': '195.253.204.64/26', 'allocation_pools': [{'start': '195.253.204.66', 'end': '195.253.204.126'}], 'gateway_ip': '195.253.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.253.204.66', 'tags': [], 'project_id': '894cb4daa9aa408394353abadce399f3'}}
2025-03-30 14:28:03,759 - INFO - Created VN ctest-vn-90881368
2025-03-30 14:28:03,813 - DEBUG - VN ctest-vn-90881368 UUID is ab7283a3-02f9-41bf-9dcb-71e951e34f51
2025-03-30 14:28:04,459 - DEBUG - Response for create_network : {'network': {'id': 'bc382eb6-69cb-49b9-944b-712b8730fdc4', 'name': 'ctest-vn-61569873', 'tenant_id': '894cb4daa9aa408394353abadce399f3', 'project_id': '894cb4daa9aa408394353abadce399f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-vn-61569873'], 'port_security_enabled': True, 'description': ''}}
2025-03-30 14:28:04,726 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2aa019b-6e0d-4c0c-b398-361f98dd5491', 'name': '', 'tenant_id': '894cb4daa9aa408394353abadce399f3', 'network_id': 'bc382eb6-69cb-49b9-944b-712b8730fdc4', 'ip_version': 4, 'cidr': '190.4.248.128/26', 'allocation_pools': [{'start': '190.4.248.130', 'end': '190.4.248.190'}], 'gateway_ip': '190.4.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.4.248.130', 'tags': [], 'project_id': '894cb4daa9aa408394353abadce399f3'}}
2025-03-30 14:28:04,748 - INFO - Created VN ctest-vn-61569873
2025-03-30 14:28:04,801 - DEBUG - VN ctest-vn-61569873 UUID is bc382eb6-69cb-49b9-944b-712b8730fdc4
2025-03-30 14:28:04,957 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-90881368, 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-78169400:ctest-vn-61569873, 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-03-30 14:28:05,257 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab7283a3-02f9-41bf-9dcb-71e951e34f51', 'name': 'ctest-vn-90881368', 'tenant_id': '894cb4daa9aa408394353abadce399f3', 'project_id': '894cb4daa9aa408394353abadce399f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1398f8d5-eae8-4203-9d3f-145baed2e73f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-vn-90881368'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-policy-allow-all-60432848']], 'subnet_ipam': [{'subnet_cidr': '195.253.204.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-30 14:28:05,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc382eb6-69cb-49b9-944b-712b8730fdc4', 'name': 'ctest-vn-61569873', 'tenant_id': '894cb4daa9aa408394353abadce399f3', 'project_id': '894cb4daa9aa408394353abadce399f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2aa019b-6e0d-4c0c-b398-361f98dd5491'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-vn-61569873'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-policy-allow-all-60432848']], 'subnet_ipam': [{'subnet_cidr': '190.4.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-30 14:28:05,645 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-30 14:28:05,948 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-30 14:28:05,981 - DEBUG - Requesting: http://10.0.0.17:8082/domain/efb228a0-5394-4e29-abbd-08aa85bd52bc
2025-03-30 14:28:05,996 - DEBUG - Requesting: http://10.0.0.17:8082/project/894cb4da-a9aa-4083-9435-3abadce399f3
2025-03-30 14:28:06,070 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab7283a3-02f9-41bf-9dcb-71e951e34f51
2025-03-30 14:28:06,081 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab7283a3-02f9-41bf-9dcb-71e951e34f51
2025-03-30 14:28:06,090 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7cf79f3e-5e35-4bb1-8e35-50d437f737f0
2025-03-30 14:28:06,096 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7cf79f3e-5e35-4bb1-8e35-50d437f737f0
2025-03-30 14:28:06,103 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/ef010375-a813-47a2-adee-5b88e0ac711f
2025-03-30 14:28:06,110 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 14:28:06,110 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab7283a3-02f9-41bf-9dcb-71e951e34f51
2025-03-30 14:28:06,119 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7cf79f3e-5e35-4bb1-8e35-50d437f737f0
2025-03-30 14:28:06,132 - INFO - Verified VN network id 9 for VN ab7283a3-02f9-41bf-9dcb-71e951e34f51
2025-03-30 14:28:06,132 - INFO - Verifications in API Server for VN ctest-vn-90881368 passed
2025-03-30 14:28:06,132 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab7283a3-02f9-41bf-9dcb-71e951e34f51
2025-03-30 14:28:06,141 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7cf79f3e-5e35-4bb1-8e35-50d437f737f0
2025-03-30 14:28:06,148 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/7cf79f3e-5e35-4bb1-8e35-50d437f737f0
2025-03-30 14:28:06,154 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/ef010375-a813-47a2-adee-5b88e0ac711f
2025-03-30 14:28:06,167 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-90881368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78169400', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12354081463983489471', 'uuid-lslong': '11370306931142119249'}, 'enable': 'true', 'created': '2025-03-30T14:28:03', 'last-modified': '2025-03-30T14:28:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927915'}
2025-03-30 14:28:06,174 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 14:28:06,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90881368 passed
2025-03-30 14:28:06,175 - DEBUG - ====Verifying policy data for ctest-vn-90881368 in API_Server ======
2025-03-30 14:28:06,175 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-30 14:28:06,183 - DEBUG - Requesting: http://10.0.0.17:8082/domain/efb228a0-5394-4e29-abbd-08aa85bd52bc
2025-03-30 14:28:06,196 - DEBUG - Requesting: http://10.0.0.17:8082/project/894cb4da-a9aa-4083-9435-3abadce399f3
2025-03-30 14:28:06,268 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/ab7283a3-02f9-41bf-9dcb-71e951e34f51
2025-03-30 14:28:06,279 - DEBUG - ==>Verifying data for policy with id: 87442470-cdfb-4b1e-b471-c4cc301775b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-policy-allow-all-60432848']
2025-03-30 14:28:06,279 - INFO - VN ctest-vn-90881368 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 14:28:06,279 - DEBUG - Verifying the vn in opserver
2025-03-30 14:28:06,279 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-90881368 virtual network link through opserver 10.0.0.17
2025-03-30 14:28:06,279 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-30 14:28:06,571 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-30 14:28:06,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-90881368', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-90881368?flat'}
2025-03-30 14:28:06,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-90881368 is found in opserver
2025-03-30 14:28:06,634 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 14:28:06,639 - DEBUG - VRF ids for VN ctest-vn-90881368: {}
2025-03-30 14:28:06,639 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-30 14:28:06,645 - DEBUG - Requesting: http://10.0.0.17:8082/domain/efb228a0-5394-4e29-abbd-08aa85bd52bc
2025-03-30 14:28:06,655 - DEBUG - Requesting: http://10.0.0.17:8082/project/894cb4da-a9aa-4083-9435-3abadce399f3
2025-03-30 14:28:06,727 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bc382eb6-69cb-49b9-944b-712b8730fdc4
2025-03-30 14:28:06,739 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bc382eb6-69cb-49b9-944b-712b8730fdc4
2025-03-30 14:28:06,749 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/34b64401-df41-4e96-8675-7b8ace375400
2025-03-30 14:28:06,756 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/34b64401-df41-4e96-8675-7b8ace375400
2025-03-30 14:28:06,764 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a950fbb0-71c2-4abe-8904-d350b5bcb05f
2025-03-30 14:28:06,771 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 14:28:06,771 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bc382eb6-69cb-49b9-944b-712b8730fdc4
2025-03-30 14:28:06,781 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/34b64401-df41-4e96-8675-7b8ace375400
2025-03-30 14:28:06,795 - INFO - Verified VN network id 10 for VN bc382eb6-69cb-49b9-944b-712b8730fdc4
2025-03-30 14:28:06,795 - INFO - Verifications in API Server for VN ctest-vn-61569873 passed
2025-03-30 14:28:06,795 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bc382eb6-69cb-49b9-944b-712b8730fdc4
2025-03-30 14:28:06,804 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/34b64401-df41-4e96-8675-7b8ace375400
2025-03-30 14:28:06,810 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/34b64401-df41-4e96-8675-7b8ace375400
2025-03-30 14:28:06,817 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/a950fbb0-71c2-4abe-8904-d350b5bcb05f
2025-03-30 14:28:06,829 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-61569873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78169400', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13562641638820104633', 'uuid-lslong': '10685758972632300996'}, 'enable': 'true', 'created': '2025-03-30T14:28:04', 'last-modified': '2025-03-30T14:28:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.356775'}
2025-03-30 14:28:06,835 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 14:28:06,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61569873 passed
2025-03-30 14:28:06,835 - DEBUG - ====Verifying policy data for ctest-vn-61569873 in API_Server ======
2025-03-30 14:28:06,835 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-30 14:28:06,840 - DEBUG - Requesting: http://10.0.0.17:8082/domain/efb228a0-5394-4e29-abbd-08aa85bd52bc
2025-03-30 14:28:06,851 - DEBUG - Requesting: http://10.0.0.17:8082/project/894cb4da-a9aa-4083-9435-3abadce399f3
2025-03-30 14:28:06,925 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/bc382eb6-69cb-49b9-944b-712b8730fdc4
2025-03-30 14:28:06,937 - DEBUG - ==>Verifying data for policy with id: 87442470-cdfb-4b1e-b471-c4cc301775b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-78169400', 'ctest-policy-allow-all-60432848']
2025-03-30 14:28:06,937 - INFO - VN ctest-vn-61569873 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 14:28:06,937 - DEBUG - Verifying the vn in opserver
2025-03-30 14:28:06,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-61569873 virtual network link through opserver 10.0.0.17
2025-03-30 14:28:06,937 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-30 14:28:06,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-61569873', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-61569873?flat'}
2025-03-30 14:28:06,951 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78169400:ctest-vn-61569873 is found in opserver
2025-03-30 14:28:06,963 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 14:28:06,969 - DEBUG - VRF ids for VN ctest-vn-61569873: {}
2025-03-30 14:28:07,034 - DEBUG - Services list from nova: [