2025-03-25 05:42:17,380 - INFO - Domain Default found not creating
2025-03-25 05:42:17,545 - INFO - Project ctest-TestBasicPolicy-62399388 not found, creating it
2025-03-25 05:42:18,028 - INFO - Created Project:ctest-TestBasicPolicy-62399388, ID : ca1739ae-590a-4550-95a0-d03181085590
2025-03-25 05:42:19,658 - INFO - ================================================================================
2025-03-25 05:42:19,658 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-25 05:42:19,658 - 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-25 05:42:19,927 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.11': '0'}} with
2025-03-25 05:42:19,927 - INFO - Initial checks done. Running the testcase now
2025-03-25 05:42:19,927 - INFO -
2025-03-25 05:42:20,592 - DEBUG - Response for create_network : {'network': {'id': '3cf801e1-54a4-41a1-8d56-ff62b720408b', 'name': 'ctest-vn-09925309', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-09925309'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 05:42:20,787 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8adf0ad-29cc-4e26-9add-33b0cd762eae', 'name': '', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'network_id': '3cf801e1-54a4-41a1-8d56-ff62b720408b', 'ip_version': 4, 'cidr': '210.132.166.0/26', 'allocation_pools': [{'start': '210.132.166.2', 'end': '210.132.166.62'}], 'gateway_ip': '210.132.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.132.166.2', 'tags': [], 'project_id': 'ca1739ae590a455095a0d03181085590'}}
2025-03-25 05:42:20,815 - INFO - Created VN ctest-vn-09925309
2025-03-25 05:42:20,874 - DEBUG - VN ctest-vn-09925309 UUID is 3cf801e1-54a4-41a1-8d56-ff62b720408b
2025-03-25 05:42:21,218 - DEBUG - Response for create_network : {'network': {'id': 'cfc66bb2-fbae-4ca2-aaf7-96e2564fba47', 'name': 'ctest-vn-69868566', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-69868566'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 05:42:21,462 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf2bc3e3-667b-4e2b-8acd-76cb57588d5a', 'name': '', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'network_id': 'cfc66bb2-fbae-4ca2-aaf7-96e2564fba47', 'ip_version': 4, 'cidr': '38.112.32.0/26', 'allocation_pools': [{'start': '38.112.32.2', 'end': '38.112.32.62'}], 'gateway_ip': '38.112.32.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.112.32.2', 'tags': [], 'project_id': 'ca1739ae590a455095a0d03181085590'}}
2025-03-25 05:42:21,485 - INFO - Created VN ctest-vn-69868566
2025-03-25 05:42:21,542 - DEBUG - VN ctest-vn-69868566 UUID is cfc66bb2-fbae-4ca2-aaf7-96e2564fba47
2025-03-25 05:42:21,673 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309, 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-62399388:ctest-vn-69868566, 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-25 05:42:22,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3cf801e1-54a4-41a1-8d56-ff62b720408b', 'name': 'ctest-vn-09925309', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8adf0ad-29cc-4e26-9add-33b0cd762eae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-09925309'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087']], 'subnet_ipam': [{'subnet_cidr': '210.132.166.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 05:42:22,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfc66bb2-fbae-4ca2-aaf7-96e2564fba47', 'name': 'ctest-vn-69868566', 'tenant_id': 'ca1739ae590a455095a0d03181085590', 'project_id': 'ca1739ae590a455095a0d03181085590', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf2bc3e3-667b-4e2b-8acd-76cb57588d5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-vn-69868566'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087']], 'subnet_ipam': [{'subnet_cidr': '38.112.32.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 05:42:22,514 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-25 05:42:22,822 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-25 05:42:22,864 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46
2025-03-25 05:42:22,883 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590
2025-03-25 05:42:22,984 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b
2025-03-25 05:42:22,998 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b
2025-03-25 05:42:23,014 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1
2025-03-25 05:42:23,026 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1
2025-03-25 05:42:23,037 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93a2edb7-4b0c-4140-89fa-4b3c3b8afc84
2025-03-25 05:42:23,047 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 05:42:23,047 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b
2025-03-25 05:42:23,060 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1
2025-03-25 05:42:23,079 - INFO - Verified VN network id 8 for VN 3cf801e1-54a4-41a1-8d56-ff62b720408b
2025-03-25 05:42:23,080 - INFO - Verifications in API Server for VN ctest-vn-09925309 passed
2025-03-25 05:42:23,080 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b
2025-03-25 05:42:23,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1
2025-03-25 05:42:23,102 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f3e67c07-024d-40a2-a22c-5e0cce3778d1
2025-03-25 05:42:23,111 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/93a2edb7-4b0c-4140-89fa-4b3c3b8afc84
2025-03-25 05:42:23,127 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62399388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4393263503799239073', 'uuid-lslong': '10184608406789177483'}, 'enable': 'true', 'created': '2025-03-25T05:42:20', 'last-modified': '2025-03-25T05:42:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.158333'}
2025-03-25 05:42:23,134 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 05:42:23,134 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09925309 passed
2025-03-25 05:42:23,135 - DEBUG - ====Verifying policy data for ctest-vn-09925309 in API_Server ======
2025-03-25 05:42:23,135 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-25 05:42:23,142 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46
2025-03-25 05:42:23,156 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590
2025-03-25 05:42:23,230 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/3cf801e1-54a4-41a1-8d56-ff62b720408b
2025-03-25 05:42:23,240 - DEBUG - ==>Verifying data for policy with id: 4f54ca5d-6c7f-488b-b573-5a6d6f7b4260, fqn: ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087']
2025-03-25 05:42:23,241 - INFO - VN ctest-vn-09925309 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 05:42:23,241 - DEBUG - Verifying the vn in opserver
2025-03-25 05:42:23,241 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309 virtual network link through opserver 10.0.0.22
2025-03-25 05:42:23,241 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-25 05:42:23,553 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-25 05:42:23,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309?flat'}
2025-03-25 05:42:23,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-09925309 is found in opserver
2025-03-25 05:42:23,643 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 05:42:23,650 - DEBUG - VRF ids for VN ctest-vn-09925309: {}
2025-03-25 05:42:23,650 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-25 05:42:23,656 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46
2025-03-25 05:42:23,672 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590
2025-03-25 05:42:23,762 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47
2025-03-25 05:42:23,775 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47
2025-03-25 05:42:23,786 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08
2025-03-25 05:42:23,794 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08
2025-03-25 05:42:23,805 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9f4580a9-32da-4e95-8aa2-90076b820508
2025-03-25 05:42:23,814 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 05:42:23,814 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47
2025-03-25 05:42:23,826 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08
2025-03-25 05:42:23,850 - INFO - Verified VN network id 9 for VN cfc66bb2-fbae-4ca2-aaf7-96e2564fba47
2025-03-25 05:42:23,850 - INFO - Verifications in API Server for VN ctest-vn-69868566 passed
2025-03-25 05:42:23,850 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47
2025-03-25 05:42:23,874 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08
2025-03-25 05:42:23,885 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b36ceded-d454-4f66-850c-b6e0047b1b08
2025-03-25 05:42:23,894 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9f4580a9-32da-4e95-8aa2-90076b820508
2025-03-25 05:42:23,910 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62399388', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14971772427710647458', 'uuid-lslong': '12319481204550122055'}, 'enable': 'true', 'created': '2025-03-25T05:42:21', 'last-modified': '2025-03-25T05:42:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.655168'}
2025-03-25 05:42:23,918 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 05:42:23,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69868566 passed
2025-03-25 05:42:23,919 - DEBUG - ====Verifying policy data for ctest-vn-69868566 in API_Server ======
2025-03-25 05:42:23,919 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-25 05:42:23,926 - DEBUG - Requesting: http://10.0.0.22:8082/domain/68d3f220-2d73-4b3e-a52f-b5d3b6856a46
2025-03-25 05:42:23,940 - DEBUG - Requesting: http://10.0.0.22:8082/project/ca1739ae-590a-4550-95a0-d03181085590
2025-03-25 05:42:24,020 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cfc66bb2-fbae-4ca2-aaf7-96e2564fba47
2025-03-25 05:42:24,033 - DEBUG - ==>Verifying data for policy with id: 4f54ca5d-6c7f-488b-b573-5a6d6f7b4260, fqn: ['default-domain', 'ctest-TestBasicPolicy-62399388', 'ctest-policy-allow-all-11184087']
2025-03-25 05:42:24,034 - INFO - VN ctest-vn-69868566 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 05:42:24,034 - DEBUG - Verifying the vn in opserver
2025-03-25 05:42:24,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566 virtual network link through opserver 10.0.0.22
2025-03-25 05:42:24,034 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-25 05:42:24,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566?flat'}
2025-03-25 05:42:24,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62399388:ctest-vn-69868566 is found in opserver
2025-03-25 05:42:24,061 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 05:42:24,067 - DEBUG - VRF ids for VN ctest-vn-69868566: {}
2025-03-25 05:42:24,128 - DEBUG - Services list from nova: [