2025-08-15 17:04:07,301 - INFO - Domain Default found not creating
2025-08-15 17:04:07,413 - INFO - Project ctest-TestBasicPolicy-31193521 not found, creating it
2025-08-15 17:04:07,875 - INFO - Created Project:ctest-TestBasicPolicy-31193521, ID : dc014809-f326-4dbc-a058-3f1bda7a9eff
2025-08-15 17:04:09,143 - INFO - ================================================================================
2025-08-15 17:04:09,143 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 17:04:09,143 - 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-08-15 17:04:09,396 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-08-15 17:04:09,396 - INFO - Initial checks done. Running the testcase now
2025-08-15 17:04:09,396 - INFO -
2025-08-15 17:04:09,897 - DEBUG - Response for create_network : {'network': {'id': 'f4575e1b-9ebf-487f-a554-b384958d1e34', 'name': 'ctest-vn-02579992', 'tenant_id': 'dc014809f3264dbca0583f1bda7a9eff', 'project_id': 'dc014809f3264dbca0583f1bda7a9eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-vn-02579992'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:04:10,078 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8a538d7-745f-4637-969c-df0e48765c11', 'name': '', 'tenant_id': 'dc014809f3264dbca0583f1bda7a9eff', 'network_id': 'f4575e1b-9ebf-487f-a554-b384958d1e34', 'ip_version': 4, 'cidr': '5.82.174.64/26', 'allocation_pools': [{'start': '5.82.174.66', 'end': '5.82.174.126'}], 'gateway_ip': '5.82.174.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.82.174.66', 'tags': [], 'project_id': 'dc014809f3264dbca0583f1bda7a9eff'}}
2025-08-15 17:04:10,092 - INFO - Created VN ctest-vn-02579992
2025-08-15 17:04:10,143 - DEBUG - VN ctest-vn-02579992 UUID is f4575e1b-9ebf-487f-a554-b384958d1e34
2025-08-15 17:04:10,442 - DEBUG - Response for create_network : {'network': {'id': '981e58ae-465a-43e4-9af6-2b7d85beea19', 'name': 'ctest-vn-78086550', 'tenant_id': 'dc014809f3264dbca0583f1bda7a9eff', 'project_id': 'dc014809f3264dbca0583f1bda7a9eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-vn-78086550'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:04:10,632 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae52285c-c952-4ec1-b581-03e9c063b42d', 'name': '', 'tenant_id': 'dc014809f3264dbca0583f1bda7a9eff', 'network_id': '981e58ae-465a-43e4-9af6-2b7d85beea19', 'ip_version': 4, 'cidr': '35.82.242.0/26', 'allocation_pools': [{'start': '35.82.242.2', 'end': '35.82.242.62'}], 'gateway_ip': '35.82.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.82.242.2', 'tags': [], 'project_id': 'dc014809f3264dbca0583f1bda7a9eff'}}
2025-08-15 17:04:10,646 - INFO - Created VN ctest-vn-78086550
2025-08-15 17:04:10,695 - DEBUG - VN ctest-vn-78086550 UUID is 981e58ae-465a-43e4-9af6-2b7d85beea19
2025-08-15 17:04:10,835 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-02579992, 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-31193521:ctest-vn-78086550, 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-08-15 17:04:11,120 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4575e1b-9ebf-487f-a554-b384958d1e34', 'name': 'ctest-vn-02579992', 'tenant_id': 'dc014809f3264dbca0583f1bda7a9eff', 'project_id': 'dc014809f3264dbca0583f1bda7a9eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8a538d7-745f-4637-969c-df0e48765c11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-vn-02579992'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-policy-allow-all-72863583']], 'subnet_ipam': [{'subnet_cidr': '5.82.174.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:04:11,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '981e58ae-465a-43e4-9af6-2b7d85beea19', 'name': 'ctest-vn-78086550', 'tenant_id': 'dc014809f3264dbca0583f1bda7a9eff', 'project_id': 'dc014809f3264dbca0583f1bda7a9eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae52285c-c952-4ec1-b581-03e9c063b42d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-vn-78086550'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-policy-allow-all-72863583']], 'subnet_ipam': [{'subnet_cidr': '35.82.242.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 17:04:11,535 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 17:04:11,823 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 17:04:11,847 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083
2025-08-15 17:04:11,858 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc014809-f326-4dbc-a058-3f1bda7a9eff
2025-08-15 17:04:11,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4575e1b-9ebf-487f-a554-b384958d1e34
2025-08-15 17:04:11,939 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4575e1b-9ebf-487f-a554-b384958d1e34
2025-08-15 17:04:11,946 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9ce412e-1d37-4435-b559-c6154aef7af4
2025-08-15 17:04:11,951 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9ce412e-1d37-4435-b559-c6154aef7af4
2025-08-15 17:04:11,956 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/63581aba-6d6a-472e-92b4-455f400e6cfd
2025-08-15 17:04:11,960 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 17:04:11,960 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4575e1b-9ebf-487f-a554-b384958d1e34
2025-08-15 17:04:11,967 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9ce412e-1d37-4435-b559-c6154aef7af4
2025-08-15 17:04:11,978 - INFO - Verified VN network id 11 for VN f4575e1b-9ebf-487f-a554-b384958d1e34
2025-08-15 17:04:11,978 - INFO - Verifications in API Server for VN ctest-vn-02579992 passed
2025-08-15 17:04:11,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4575e1b-9ebf-487f-a554-b384958d1e34
2025-08-15 17:04:11,985 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9ce412e-1d37-4435-b559-c6154aef7af4
2025-08-15 17:04:11,990 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c9ce412e-1d37-4435-b559-c6154aef7af4
2025-08-15 17:04:11,995 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/63581aba-6d6a-472e-92b4-455f400e6cfd
2025-08-15 17:04:12,004 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-02579992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31193521', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17606644740948707455', 'uuid-lslong': '11913344296327913012'}, 'enable': 'true', 'created': '2025-08-15T17:04:09', 'last-modified': '2025-08-15T17:04:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905016'}
2025-08-15 17:04:12,009 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 17:04:12,009 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02579992 passed
2025-08-15 17:04:12,010 - DEBUG - ====Verifying policy data for ctest-vn-02579992 in API_Server ======
2025-08-15 17:04:12,010 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 17:04:12,013 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083
2025-08-15 17:04:12,023 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc014809-f326-4dbc-a058-3f1bda7a9eff
2025-08-15 17:04:12,092 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4575e1b-9ebf-487f-a554-b384958d1e34
2025-08-15 17:04:12,100 - DEBUG - ==>Verifying data for policy with id: 3f4b9a55-b699-46d6-be95-b781aa1165e6, fqn: ['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-policy-allow-all-72863583']
2025-08-15 17:04:12,100 - INFO - VN ctest-vn-02579992 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 17:04:12,101 - DEBUG - Verifying the vn in opserver
2025-08-15 17:04:12,101 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-02579992 virtual network link through opserver 10.0.0.254
2025-08-15 17:04:12,101 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 17:04:12,386 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 17:04:12,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-02579992', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-02579992?flat'}
2025-08-15 17:04:12,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-02579992 is found in opserver
2025-08-15 17:04:12,441 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 17:04:12,444 - DEBUG - VRF ids for VN ctest-vn-02579992: {}
2025-08-15 17:04:12,445 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 17:04:12,449 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083
2025-08-15 17:04:12,458 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc014809-f326-4dbc-a058-3f1bda7a9eff
2025-08-15 17:04:12,522 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/981e58ae-465a-43e4-9af6-2b7d85beea19
2025-08-15 17:04:12,531 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/981e58ae-465a-43e4-9af6-2b7d85beea19
2025-08-15 17:04:12,538 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/68d1d8d9-46cf-4500-8144-a06f1c8af193
2025-08-15 17:04:12,543 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/68d1d8d9-46cf-4500-8144-a06f1c8af193
2025-08-15 17:04:12,548 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/026ad3c5-21b0-45a3-a971-3ceccc970404
2025-08-15 17:04:12,553 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 17:04:12,553 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/981e58ae-465a-43e4-9af6-2b7d85beea19
2025-08-15 17:04:12,560 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/68d1d8d9-46cf-4500-8144-a06f1c8af193
2025-08-15 17:04:12,570 - INFO - Verified VN network id 12 for VN 981e58ae-465a-43e4-9af6-2b7d85beea19
2025-08-15 17:04:12,570 - INFO - Verifications in API Server for VN ctest-vn-78086550 passed
2025-08-15 17:04:12,570 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/981e58ae-465a-43e4-9af6-2b7d85beea19
2025-08-15 17:04:12,577 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/68d1d8d9-46cf-4500-8144-a06f1c8af193
2025-08-15 17:04:12,582 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/68d1d8d9-46cf-4500-8144-a06f1c8af193
2025-08-15 17:04:12,587 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/026ad3c5-21b0-45a3-a971-3ceccc970404
2025-08-15 17:04:12,595 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-78086550', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31193521', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10961296048594240484', 'uuid-lslong': '11166160144226511385'}, 'enable': 'true', 'created': '2025-08-15T17:04:10', 'last-modified': '2025-08-15T17:04:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.281543'}
2025-08-15 17:04:12,600 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 17:04:12,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78086550 passed
2025-08-15 17:04:12,600 - DEBUG - ====Verifying policy data for ctest-vn-78086550 in API_Server ======
2025-08-15 17:04:12,600 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 17:04:12,604 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083
2025-08-15 17:04:12,613 - DEBUG - Requesting: http://10.0.0.254:8082/project/dc014809-f326-4dbc-a058-3f1bda7a9eff
2025-08-15 17:04:12,683 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/981e58ae-465a-43e4-9af6-2b7d85beea19
2025-08-15 17:04:12,691 - DEBUG - ==>Verifying data for policy with id: 3f4b9a55-b699-46d6-be95-b781aa1165e6, fqn: ['default-domain', 'ctest-TestBasicPolicy-31193521', 'ctest-policy-allow-all-72863583']
2025-08-15 17:04:12,691 - INFO - VN ctest-vn-78086550 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 17:04:12,691 - DEBUG - Verifying the vn in opserver
2025-08-15 17:04:12,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-78086550 virtual network link through opserver 10.0.0.254
2025-08-15 17:04:12,691 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 17:04:12,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-78086550', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-78086550?flat'}
2025-08-15 17:04:12,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31193521:ctest-vn-78086550 is found in opserver
2025-08-15 17:04:12,707 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 17:04:12,711 - DEBUG - VRF ids for VN ctest-vn-78086550: {}
2025-08-15 17:04:12,756 - DEBUG - Services list from nova: [