2025-09-11 16:56:15,003 - INFO - Domain Default found not creating
2025-09-11 16:56:15,383 - INFO - Project ctest-TestBasicPolicy-02555976 not found, creating it
2025-09-11 16:56:16,052 - INFO - Created Project:ctest-TestBasicPolicy-02555976, ID : c1b56757-c411-4ae6-be55-735fd675a826
2025-09-11 16:56:18,194 - INFO - ================================================================================
2025-09-11 16:56:18,194 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 16:56:18,195 - 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-09-11 16:56:18,514 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-11 16:56:18,514 - INFO - Initial checks done. Running the testcase now
2025-09-11 16:56:18,514 - INFO -
2025-09-11 16:56:19,325 - DEBUG - Response for create_network : {'network': {'id': 'ec9a4d2c-7969-41bf-abb6-b73a4def1949', 'name': 'ctest-vn-13388196', 'tenant_id': 'c1b56757c4114ae6be55735fd675a826', 'project_id': 'c1b56757c4114ae6be55735fd675a826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-vn-13388196'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 16:56:19,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e4f5ab6-3a9b-4ffe-a8f5-3fd37165b986', 'name': '', 'tenant_id': 'c1b56757c4114ae6be55735fd675a826', 'network_id': 'ec9a4d2c-7969-41bf-abb6-b73a4def1949', 'ip_version': 4, 'cidr': '36.193.174.192/26', 'allocation_pools': [{'start': '36.193.174.194', 'end': '36.193.174.254'}], 'gateway_ip': '36.193.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.193.174.194', 'tags': [], 'project_id': 'c1b56757c4114ae6be55735fd675a826'}}
2025-09-11 16:56:19,640 - INFO - Created VN ctest-vn-13388196
2025-09-11 16:56:19,724 - DEBUG - VN ctest-vn-13388196 UUID is ec9a4d2c-7969-41bf-abb6-b73a4def1949
2025-09-11 16:56:20,164 - DEBUG - Response for create_network : {'network': {'id': 'c295b2af-76c7-414d-bf31-07d91bab3607', 'name': 'ctest-vn-23011965', 'tenant_id': 'c1b56757c4114ae6be55735fd675a826', 'project_id': 'c1b56757c4114ae6be55735fd675a826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-vn-23011965'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 16:56:20,493 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea266256-b741-4a8e-afdb-135acf615677', 'name': '', 'tenant_id': 'c1b56757c4114ae6be55735fd675a826', 'network_id': 'c295b2af-76c7-414d-bf31-07d91bab3607', 'ip_version': 4, 'cidr': '36.133.69.128/26', 'allocation_pools': [{'start': '36.133.69.130', 'end': '36.133.69.190'}], 'gateway_ip': '36.133.69.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.133.69.130', 'tags': [], 'project_id': 'c1b56757c4114ae6be55735fd675a826'}}
2025-09-11 16:56:20,522 - INFO - Created VN ctest-vn-23011965
2025-09-11 16:56:20,587 - DEBUG - VN ctest-vn-23011965 UUID is c295b2af-76c7-414d-bf31-07d91bab3607
2025-09-11 16:56:20,757 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-13388196, 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-02555976:ctest-vn-23011965, 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-09-11 16:56:21,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec9a4d2c-7969-41bf-abb6-b73a4def1949', 'name': 'ctest-vn-13388196', 'tenant_id': 'c1b56757c4114ae6be55735fd675a826', 'project_id': 'c1b56757c4114ae6be55735fd675a826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e4f5ab6-3a9b-4ffe-a8f5-3fd37165b986'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-vn-13388196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-policy-allow-all-81040696']], 'subnet_ipam': [{'subnet_cidr': '36.193.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 16:56:21,577 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c295b2af-76c7-414d-bf31-07d91bab3607', 'name': 'ctest-vn-23011965', 'tenant_id': 'c1b56757c4114ae6be55735fd675a826', 'project_id': 'c1b56757c4114ae6be55735fd675a826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea266256-b741-4a8e-afdb-135acf615677'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-vn-23011965'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-policy-allow-all-81040696']], 'subnet_ipam': [{'subnet_cidr': '36.133.69.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 16:56:21,755 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 16:56:22,065 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 16:56:22,097 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f
2025-09-11 16:56:22,118 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1b56757-c411-4ae6-be55-735fd675a826
2025-09-11 16:56:22,213 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec9a4d2c-7969-41bf-abb6-b73a4def1949
2025-09-11 16:56:22,229 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec9a4d2c-7969-41bf-abb6-b73a4def1949
2025-09-11 16:56:22,247 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91a2b4c9-3ca8-42e3-a999-a7d87224de74
2025-09-11 16:56:22,260 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91a2b4c9-3ca8-42e3-a999-a7d87224de74
2025-09-11 16:56:22,273 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/825ee105-b3ca-47a1-bd46-0fc6bb7a18f8
2025-09-11 16:56:22,287 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 16:56:22,287 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec9a4d2c-7969-41bf-abb6-b73a4def1949
2025-09-11 16:56:22,309 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91a2b4c9-3ca8-42e3-a999-a7d87224de74
2025-09-11 16:56:22,340 - INFO - Verified VN network id 11 for VN ec9a4d2c-7969-41bf-abb6-b73a4def1949
2025-09-11 16:56:22,340 - INFO - Verifications in API Server for VN ctest-vn-13388196 passed
2025-09-11 16:56:22,340 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec9a4d2c-7969-41bf-abb6-b73a4def1949
2025-09-11 16:56:22,354 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91a2b4c9-3ca8-42e3-a999-a7d87224de74
2025-09-11 16:56:22,365 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/91a2b4c9-3ca8-42e3-a999-a7d87224de74
2025-09-11 16:56:22,378 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/825ee105-b3ca-47a1-bd46-0fc6bb7a18f8
2025-09-11 16:56:22,400 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-13388196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02555976', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17049024192775274943', 'uuid-lslong': '12373278487290517833'}, 'enable': 'true', 'created': '2025-09-11T16:56:19', 'last-modified': '2025-09-11T16:56:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.257309'}
2025-09-11 16:56:22,411 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 16:56:22,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13388196 passed
2025-09-11 16:56:22,411 - DEBUG - ====Verifying policy data for ctest-vn-13388196 in API_Server ======
2025-09-11 16:56:22,411 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 16:56:22,422 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f
2025-09-11 16:56:22,437 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1b56757-c411-4ae6-be55-735fd675a826
2025-09-11 16:56:22,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ec9a4d2c-7969-41bf-abb6-b73a4def1949
2025-09-11 16:56:22,572 - DEBUG - ==>Verifying data for policy with id: 632889e2-9158-4b10-a10f-ff24dfc318b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-policy-allow-all-81040696']
2025-09-11 16:56:22,572 - INFO - VN ctest-vn-13388196 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 16:56:22,572 - DEBUG - Verifying the vn in opserver
2025-09-11 16:56:22,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-13388196 virtual network link through opserver 10.0.0.254
2025-09-11 16:56:22,573 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 16:56:22,903 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 16:56:23,353 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-13388196', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-13388196?flat'}
2025-09-11 16:56:23,353 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-13388196 is found in opserver
2025-09-11 16:56:23,384 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 16:56:23,396 - DEBUG - VRF ids for VN ctest-vn-13388196: {}
2025-09-11 16:56:23,397 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 16:56:23,412 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f
2025-09-11 16:56:23,437 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1b56757-c411-4ae6-be55-735fd675a826
2025-09-11 16:56:23,548 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c295b2af-76c7-414d-bf31-07d91bab3607
2025-09-11 16:56:23,580 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c295b2af-76c7-414d-bf31-07d91bab3607
2025-09-11 16:56:23,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22bfbfca-54cb-446a-8ef4-d4a45d904e88
2025-09-11 16:56:23,631 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22bfbfca-54cb-446a-8ef4-d4a45d904e88
2025-09-11 16:56:23,650 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/18578244-98a0-4ca3-bee7-81478944468b
2025-09-11 16:56:23,674 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 16:56:23,675 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c295b2af-76c7-414d-bf31-07d91bab3607
2025-09-11 16:56:23,705 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22bfbfca-54cb-446a-8ef4-d4a45d904e88
2025-09-11 16:56:23,738 - INFO - Verified VN network id 12 for VN c295b2af-76c7-414d-bf31-07d91bab3607
2025-09-11 16:56:23,739 - INFO - Verifications in API Server for VN ctest-vn-23011965 passed
2025-09-11 16:56:23,739 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c295b2af-76c7-414d-bf31-07d91bab3607
2025-09-11 16:56:23,764 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22bfbfca-54cb-446a-8ef4-d4a45d904e88
2025-09-11 16:56:23,776 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22bfbfca-54cb-446a-8ef4-d4a45d904e88
2025-09-11 16:56:23,788 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/18578244-98a0-4ca3-bee7-81478944468b
2025-09-11 16:56:23,821 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-23011965', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02555976', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14021309481569698125', 'uuid-lslong': '13776801364156560903'}, 'enable': 'true', 'created': '2025-09-11T16:56:20', 'last-modified': '2025-09-11T16:56:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.328959'}
2025-09-11 16:56:23,837 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 16:56:23,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23011965 passed
2025-09-11 16:56:23,838 - DEBUG - ====Verifying policy data for ctest-vn-23011965 in API_Server ======
2025-09-11 16:56:23,838 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 16:56:23,844 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f
2025-09-11 16:56:23,854 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1b56757-c411-4ae6-be55-735fd675a826
2025-09-11 16:56:23,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c295b2af-76c7-414d-bf31-07d91bab3607
2025-09-11 16:56:23,938 - DEBUG - ==>Verifying data for policy with id: 632889e2-9158-4b10-a10f-ff24dfc318b2, fqn: ['default-domain', 'ctest-TestBasicPolicy-02555976', 'ctest-policy-allow-all-81040696']
2025-09-11 16:56:23,938 - INFO - VN ctest-vn-23011965 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 16:56:23,938 - DEBUG - Verifying the vn in opserver
2025-09-11 16:56:23,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-23011965 virtual network link through opserver 10.0.0.254
2025-09-11 16:56:23,938 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 16:56:23,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-23011965', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-23011965?flat'}
2025-09-11 16:56:23,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02555976:ctest-vn-23011965 is found in opserver
2025-09-11 16:56:23,955 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 16:56:23,959 - DEBUG - VRF ids for VN ctest-vn-23011965: {}
2025-09-11 16:56:24,009 - DEBUG - Services list from nova: [