2025-04-26 15:31:45,144 - INFO - Domain Default found not creating
2025-04-26 15:31:45,271 - INFO - Project ctest-TestBasicPolicy-59503885 not found, creating it
2025-04-26 15:31:45,698 - INFO - Created Project:ctest-TestBasicPolicy-59503885, ID : b1c0b452-72d2-4072-bd3a-41e7e3776a75
2025-04-26 15:31:47,073 - INFO - ================================================================================
2025-04-26 15:31:47,073 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 15:31:47,073 - 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-04-26 15:31:47,328 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-04-26 15:31:47,328 - INFO - Initial checks done. Running the testcase now
2025-04-26 15:31:47,328 - INFO -
2025-04-26 15:31:47,856 - DEBUG - Response for create_network : {'network': {'id': 'ef998132-0883-4e52-96e9-4d4e13b8ad86', 'name': 'ctest-vn-00923777', 'tenant_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'project_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-vn-00923777'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 15:31:48,060 - DEBUG - Response for create_subnet : {'subnet': {'id': '37a6fcef-6f73-41f8-87b2-86f0fad8a64a', 'name': '', 'tenant_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'network_id': 'ef998132-0883-4e52-96e9-4d4e13b8ad86', 'ip_version': 4, 'cidr': '69.169.65.0/26', 'allocation_pools': [{'start': '69.169.65.2', 'end': '69.169.65.62'}], 'gateway_ip': '69.169.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.169.65.2', 'tags': [], 'project_id': 'b1c0b45272d24072bd3a41e7e3776a75'}}
2025-04-26 15:31:48,075 - INFO - Created VN ctest-vn-00923777
2025-04-26 15:31:48,194 - DEBUG - VN ctest-vn-00923777 UUID is ef998132-0883-4e52-96e9-4d4e13b8ad86
2025-04-26 15:31:48,516 - DEBUG - Response for create_network : {'network': {'id': 'cf796e4f-74c5-42c5-8295-d8df08c20a5e', 'name': 'ctest-vn-17713381', 'tenant_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'project_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-vn-17713381'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 15:31:48,722 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f3b0e57e-5e36-40e8-8e4c-ce866f33bdb1', 'name': '', 'tenant_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'network_id': 'cf796e4f-74c5-42c5-8295-d8df08c20a5e', 'ip_version': 4, 'cidr': '79.85.36.128/26', 'allocation_pools': [{'start': '79.85.36.130', 'end': '79.85.36.190'}], 'gateway_ip': '79.85.36.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.85.36.130', 'tags': [], 'project_id': 'b1c0b45272d24072bd3a41e7e3776a75'}}
2025-04-26 15:31:48,738 - INFO - Created VN ctest-vn-17713381
2025-04-26 15:31:48,790 - DEBUG - VN ctest-vn-17713381 UUID is cf796e4f-74c5-42c5-8295-d8df08c20a5e
2025-04-26 15:31:48,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-00923777, 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-59503885:ctest-vn-17713381, 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-04-26 15:31:49,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef998132-0883-4e52-96e9-4d4e13b8ad86', 'name': 'ctest-vn-00923777', 'tenant_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'project_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37a6fcef-6f73-41f8-87b2-86f0fad8a64a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-vn-00923777'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-policy-allow-all-67939727']], 'subnet_ipam': [{'subnet_cidr': '69.169.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 15:31:49,508 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf796e4f-74c5-42c5-8295-d8df08c20a5e', 'name': 'ctest-vn-17713381', 'tenant_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'project_id': 'b1c0b45272d24072bd3a41e7e3776a75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f3b0e57e-5e36-40e8-8e4c-ce866f33bdb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-vn-17713381'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-policy-allow-all-67939727']], 'subnet_ipam': [{'subnet_cidr': '79.85.36.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 15:31:49,654 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 15:31:49,949 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 15:31:49,975 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7e7f080c-d134-4fa5-962c-b6393961d0f8
2025-04-26 15:31:49,987 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1c0b452-72d2-4072-bd3a-41e7e3776a75
2025-04-26 15:31:50,058 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef998132-0883-4e52-96e9-4d4e13b8ad86
2025-04-26 15:31:50,068 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef998132-0883-4e52-96e9-4d4e13b8ad86
2025-04-26 15:31:50,077 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b38039a4-a954-4120-94c8-c73d21b6ee83
2025-04-26 15:31:50,083 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b38039a4-a954-4120-94c8-c73d21b6ee83
2025-04-26 15:31:50,089 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/54e60d6b-7c68-42c6-a630-9f582eb48522
2025-04-26 15:31:50,095 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 15:31:50,095 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef998132-0883-4e52-96e9-4d4e13b8ad86
2025-04-26 15:31:50,103 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b38039a4-a954-4120-94c8-c73d21b6ee83
2025-04-26 15:31:50,122 - INFO - Verified VN network id 7 for VN ef998132-0883-4e52-96e9-4d4e13b8ad86
2025-04-26 15:31:50,122 - INFO - Verifications in API Server for VN ctest-vn-00923777 passed
2025-04-26 15:31:50,122 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef998132-0883-4e52-96e9-4d4e13b8ad86
2025-04-26 15:31:50,130 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b38039a4-a954-4120-94c8-c73d21b6ee83
2025-04-26 15:31:50,136 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b38039a4-a954-4120-94c8-c73d21b6ee83
2025-04-26 15:31:50,143 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/54e60d6b-7c68-42c6-a630-9f582eb48522
2025-04-26 15:31:50,153 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-00923777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59503885', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17264972698392677970', 'uuid-lslong': '10874307772996431238'}, 'enable': 'true', 'created': '2025-04-26T15:31:47', 'last-modified': '2025-04-26T15:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933390'}
2025-04-26 15:31:50,159 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 15:31:50,160 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00923777 passed
2025-04-26 15:31:50,160 - DEBUG - ====Verifying policy data for ctest-vn-00923777 in API_Server ======
2025-04-26 15:31:50,160 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 15:31:50,164 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7e7f080c-d134-4fa5-962c-b6393961d0f8
2025-04-26 15:31:50,175 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1c0b452-72d2-4072-bd3a-41e7e3776a75
2025-04-26 15:31:50,247 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ef998132-0883-4e52-96e9-4d4e13b8ad86
2025-04-26 15:31:50,259 - DEBUG - ==>Verifying data for policy with id: ebdff4a6-14a1-4dd9-95c6-916adc9ae770, fqn: ['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-policy-allow-all-67939727']
2025-04-26 15:31:50,260 - INFO - VN ctest-vn-00923777 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 15:31:50,260 - DEBUG - Verifying the vn in opserver
2025-04-26 15:31:50,260 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-00923777 virtual network link through opserver 10.0.0.22
2025-04-26 15:31:50,260 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 15:31:50,551 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 15:31:50,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-00923777', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-00923777?flat'}
2025-04-26 15:31:50,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-00923777 is found in opserver
2025-04-26 15:31:50,616 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 15:31:50,621 - DEBUG - VRF ids for VN ctest-vn-00923777: {}
2025-04-26 15:31:50,621 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 15:31:50,626 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7e7f080c-d134-4fa5-962c-b6393961d0f8
2025-04-26 15:31:50,637 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1c0b452-72d2-4072-bd3a-41e7e3776a75
2025-04-26 15:31:50,712 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf796e4f-74c5-42c5-8295-d8df08c20a5e
2025-04-26 15:31:50,723 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf796e4f-74c5-42c5-8295-d8df08c20a5e
2025-04-26 15:31:50,732 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1376980e-9ae7-4601-9918-7dda08a08f6d
2025-04-26 15:31:50,739 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1376980e-9ae7-4601-9918-7dda08a08f6d
2025-04-26 15:31:50,745 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2323b067-11ef-4824-a71b-921b99caf4fa
2025-04-26 15:31:50,750 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 15:31:50,750 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf796e4f-74c5-42c5-8295-d8df08c20a5e
2025-04-26 15:31:50,759 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1376980e-9ae7-4601-9918-7dda08a08f6d
2025-04-26 15:31:50,771 - INFO - Verified VN network id 8 for VN cf796e4f-74c5-42c5-8295-d8df08c20a5e
2025-04-26 15:31:50,771 - INFO - Verifications in API Server for VN ctest-vn-17713381 passed
2025-04-26 15:31:50,771 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf796e4f-74c5-42c5-8295-d8df08c20a5e
2025-04-26 15:31:50,779 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1376980e-9ae7-4601-9918-7dda08a08f6d
2025-04-26 15:31:50,785 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1376980e-9ae7-4601-9918-7dda08a08f6d
2025-04-26 15:31:50,792 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2323b067-11ef-4824-a71b-921b99caf4fa
2025-04-26 15:31:50,803 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-17713381', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59503885', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14950101725573628613', 'uuid-lslong': '9409665448896760414'}, 'enable': 'true', 'created': '2025-04-26T15:31:48', 'last-modified': '2025-04-26T15:31:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.355672'}
2025-04-26 15:31:50,809 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 15:31:50,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17713381 passed
2025-04-26 15:31:50,810 - DEBUG - ====Verifying policy data for ctest-vn-17713381 in API_Server ======
2025-04-26 15:31:50,810 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-26 15:31:50,814 - DEBUG - Requesting: http://10.0.0.22:8082/domain/7e7f080c-d134-4fa5-962c-b6393961d0f8
2025-04-26 15:31:50,825 - DEBUG - Requesting: http://10.0.0.22:8082/project/b1c0b452-72d2-4072-bd3a-41e7e3776a75
2025-04-26 15:31:50,902 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cf796e4f-74c5-42c5-8295-d8df08c20a5e
2025-04-26 15:31:50,912 - DEBUG - ==>Verifying data for policy with id: ebdff4a6-14a1-4dd9-95c6-916adc9ae770, fqn: ['default-domain', 'ctest-TestBasicPolicy-59503885', 'ctest-policy-allow-all-67939727']
2025-04-26 15:31:50,912 - INFO - VN ctest-vn-17713381 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 15:31:50,912 - DEBUG - Verifying the vn in opserver
2025-04-26 15:31:50,912 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-17713381 virtual network link through opserver 10.0.0.22
2025-04-26 15:31:50,912 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-26 15:31:50,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-17713381', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-17713381?flat'}
2025-04-26 15:31:50,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59503885:ctest-vn-17713381 is found in opserver
2025-04-26 15:31:50,933 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 15:31:50,939 - DEBUG - VRF ids for VN ctest-vn-17713381: {}
2025-04-26 15:31:50,992 - DEBUG - Services list from nova: [