2025-05-08 02:18:48,459 - INFO - Domain Default found not creating
2025-05-08 02:18:48,593 - INFO - Project ctest-TestBasicPolicy-01750319 not found, creating it
2025-05-08 02:18:49,064 - INFO - Created Project:ctest-TestBasicPolicy-01750319, ID : bcd71257-50b2-4f26-997c-3866e20e955b
2025-05-08 02:18:50,353 - INFO - ================================================================================
2025-05-08 02:18:50,353 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-08 02:18:50,353 - 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-05-08 02:18:50,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.18': '0'}} with
2025-05-08 02:18:50,607 - INFO - Initial checks done. Running the testcase now
2025-05-08 02:18:50,607 - INFO -
2025-05-08 02:18:51,262 - DEBUG - Response for create_network : {'network': {'id': 'c8fdc5cf-664d-420f-8cef-47af43da79ae', 'name': 'ctest-vn-69679444', 'tenant_id': 'bcd7125750b24f26997c3866e20e955b', 'project_id': 'bcd7125750b24f26997c3866e20e955b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-vn-69679444'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:18:51,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '56f756e8-0459-41a7-8905-c9a5566d664b', 'name': '', 'tenant_id': 'bcd7125750b24f26997c3866e20e955b', 'network_id': 'c8fdc5cf-664d-420f-8cef-47af43da79ae', 'ip_version': 4, 'cidr': '95.157.105.192/26', 'allocation_pools': [{'start': '95.157.105.194', 'end': '95.157.105.254'}], 'gateway_ip': '95.157.105.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.157.105.194', 'tags': [], 'project_id': 'bcd7125750b24f26997c3866e20e955b'}}
2025-05-08 02:18:51,714 - INFO - Created VN ctest-vn-69679444
2025-05-08 02:18:51,812 - DEBUG - VN ctest-vn-69679444 UUID is c8fdc5cf-664d-420f-8cef-47af43da79ae
2025-05-08 02:18:52,429 - DEBUG - Response for create_network : {'network': {'id': 'dde2776f-9b18-413c-b211-0117ccef7fdf', 'name': 'ctest-vn-80320753', 'tenant_id': 'bcd7125750b24f26997c3866e20e955b', 'project_id': 'bcd7125750b24f26997c3866e20e955b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-vn-80320753'], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:18:52,630 - DEBUG - Response for create_subnet : {'subnet': {'id': '98c8dfe2-e4b6-4581-b174-8b03cb788cf3', 'name': '', 'tenant_id': 'bcd7125750b24f26997c3866e20e955b', 'network_id': 'dde2776f-9b18-413c-b211-0117ccef7fdf', 'ip_version': 4, 'cidr': '151.147.195.64/26', 'allocation_pools': [{'start': '151.147.195.66', 'end': '151.147.195.126'}], 'gateway_ip': '151.147.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.147.195.66', 'tags': [], 'project_id': 'bcd7125750b24f26997c3866e20e955b'}}
2025-05-08 02:18:52,646 - INFO - Created VN ctest-vn-80320753
2025-05-08 02:18:52,696 - DEBUG - VN ctest-vn-80320753 UUID is dde2776f-9b18-413c-b211-0117ccef7fdf
2025-05-08 02:18:52,813 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-69679444, 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-01750319:ctest-vn-80320753, 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-05-08 02:18:53,126 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8fdc5cf-664d-420f-8cef-47af43da79ae', 'name': 'ctest-vn-69679444', 'tenant_id': 'bcd7125750b24f26997c3866e20e955b', 'project_id': 'bcd7125750b24f26997c3866e20e955b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['56f756e8-0459-41a7-8905-c9a5566d664b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-vn-69679444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-policy-allow-all-96838059']], 'subnet_ipam': [{'subnet_cidr': '95.157.105.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:18:53,408 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dde2776f-9b18-413c-b211-0117ccef7fdf', 'name': 'ctest-vn-80320753', 'tenant_id': 'bcd7125750b24f26997c3866e20e955b', 'project_id': 'bcd7125750b24f26997c3866e20e955b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98c8dfe2-e4b6-4581-b174-8b03cb788cf3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-vn-80320753'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-policy-allow-all-96838059']], 'subnet_ipam': [{'subnet_cidr': '151.147.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-08 02:18:53,569 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-08 02:18:53,844 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-08 02:18:53,874 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c43aaa1d-bd19-4865-a667-7accb5b556be
2025-05-08 02:18:53,889 - DEBUG - Requesting: http://10.0.0.27:8082/project/bcd71257-50b2-4f26-997c-3866e20e955b
2025-05-08 02:18:53,972 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c8fdc5cf-664d-420f-8cef-47af43da79ae
2025-05-08 02:18:53,984 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c8fdc5cf-664d-420f-8cef-47af43da79ae
2025-05-08 02:18:53,996 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/15297a2f-22fe-44f6-872a-0607ceb62a4b
2025-05-08 02:18:54,005 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/15297a2f-22fe-44f6-872a-0607ceb62a4b
2025-05-08 02:18:54,011 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/277e477e-194b-4c0b-b069-72d5b595513c
2025-05-08 02:18:54,017 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 02:18:54,017 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c8fdc5cf-664d-420f-8cef-47af43da79ae
2025-05-08 02:18:54,025 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/15297a2f-22fe-44f6-872a-0607ceb62a4b
2025-05-08 02:18:54,040 - INFO - Verified VN network id 9 for VN c8fdc5cf-664d-420f-8cef-47af43da79ae
2025-05-08 02:18:54,040 - INFO - Verifications in API Server for VN ctest-vn-69679444 passed
2025-05-08 02:18:54,040 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c8fdc5cf-664d-420f-8cef-47af43da79ae
2025-05-08 02:18:54,050 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/15297a2f-22fe-44f6-872a-0607ceb62a4b
2025-05-08 02:18:54,056 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/15297a2f-22fe-44f6-872a-0607ceb62a4b
2025-05-08 02:18:54,063 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/277e477e-194b-4c0b-b069-72d5b595513c
2025-05-08 02:18:54,075 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-69679444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01750319', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14482949471258624527', 'uuid-lslong': '10155414502826998190'}, 'enable': 'true', 'created': '2025-05-08T02:18:51', 'last-modified': '2025-05-08T02:18:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980020'}
2025-05-08 02:18:54,081 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-08 02:18:54,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69679444 passed
2025-05-08 02:18:54,081 - DEBUG - ====Verifying policy data for ctest-vn-69679444 in API_Server ======
2025-05-08 02:18:54,082 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-08 02:18:54,088 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c43aaa1d-bd19-4865-a667-7accb5b556be
2025-05-08 02:18:54,100 - DEBUG - Requesting: http://10.0.0.27:8082/project/bcd71257-50b2-4f26-997c-3866e20e955b
2025-05-08 02:18:54,175 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c8fdc5cf-664d-420f-8cef-47af43da79ae
2025-05-08 02:18:54,195 - DEBUG - ==>Verifying data for policy with id: 2d5e1dd0-9b51-4d9c-ad9e-4f7bfe8b2336, fqn: ['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-policy-allow-all-96838059']
2025-05-08 02:18:54,195 - INFO - VN ctest-vn-69679444 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 02:18:54,195 - DEBUG - Verifying the vn in opserver
2025-05-08 02:18:54,195 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-69679444 virtual network link through opserver 10.0.0.27
2025-05-08 02:18:54,195 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-08 02:18:54,472 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-08 02:18:54,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-69679444', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-69679444?flat'}
2025-05-08 02:18:54,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-69679444 is found in opserver
2025-05-08 02:18:54,553 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 02:18:54,559 - DEBUG - VRF ids for VN ctest-vn-69679444: {}
2025-05-08 02:18:54,559 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-08 02:18:54,565 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c43aaa1d-bd19-4865-a667-7accb5b556be
2025-05-08 02:18:54,576 - DEBUG - Requesting: http://10.0.0.27:8082/project/bcd71257-50b2-4f26-997c-3866e20e955b
2025-05-08 02:18:54,655 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dde2776f-9b18-413c-b211-0117ccef7fdf
2025-05-08 02:18:54,667 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dde2776f-9b18-413c-b211-0117ccef7fdf
2025-05-08 02:18:54,677 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a16e3105-6d6c-4f10-9006-fc754fd6d44d
2025-05-08 02:18:54,684 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a16e3105-6d6c-4f10-9006-fc754fd6d44d
2025-05-08 02:18:54,691 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/465e89dc-bedf-4076-99cd-52f66a74acaa
2025-05-08 02:18:54,698 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 02:18:54,698 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dde2776f-9b18-413c-b211-0117ccef7fdf
2025-05-08 02:18:54,706 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a16e3105-6d6c-4f10-9006-fc754fd6d44d
2025-05-08 02:18:54,719 - INFO - Verified VN network id 10 for VN dde2776f-9b18-413c-b211-0117ccef7fdf
2025-05-08 02:18:54,719 - INFO - Verifications in API Server for VN ctest-vn-80320753 passed
2025-05-08 02:18:54,719 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dde2776f-9b18-413c-b211-0117ccef7fdf
2025-05-08 02:18:54,728 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a16e3105-6d6c-4f10-9006-fc754fd6d44d
2025-05-08 02:18:54,734 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a16e3105-6d6c-4f10-9006-fc754fd6d44d
2025-05-08 02:18:54,742 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/465e89dc-bedf-4076-99cd-52f66a74acaa
2025-05-08 02:18:54,752 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-80320753', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01750319', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15988472948345815356', 'uuid-lslong': '12831038015089377247'}, 'enable': 'true', 'created': '2025-05-08T02:18:52', 'last-modified': '2025-05-08T02:18:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406772'}
2025-05-08 02:18:54,758 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-08 02:18:54,758 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80320753 passed
2025-05-08 02:18:54,758 - DEBUG - ====Verifying policy data for ctest-vn-80320753 in API_Server ======
2025-05-08 02:18:54,758 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-08 02:18:54,764 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c43aaa1d-bd19-4865-a667-7accb5b556be
2025-05-08 02:18:54,776 - DEBUG - Requesting: http://10.0.0.27:8082/project/bcd71257-50b2-4f26-997c-3866e20e955b
2025-05-08 02:18:54,854 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/dde2776f-9b18-413c-b211-0117ccef7fdf
2025-05-08 02:18:54,866 - DEBUG - ==>Verifying data for policy with id: 2d5e1dd0-9b51-4d9c-ad9e-4f7bfe8b2336, fqn: ['default-domain', 'ctest-TestBasicPolicy-01750319', 'ctest-policy-allow-all-96838059']
2025-05-08 02:18:54,866 - INFO - VN ctest-vn-80320753 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-08 02:18:54,866 - DEBUG - Verifying the vn in opserver
2025-05-08 02:18:54,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-80320753 virtual network link through opserver 10.0.0.27
2025-05-08 02:18:54,866 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-08 02:18:54,876 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-80320753', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-80320753?flat'}
2025-05-08 02:18:54,876 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01750319:ctest-vn-80320753 is found in opserver
2025-05-08 02:18:54,887 - DEBUG - Do not have enough data to verify VN in agent
2025-05-08 02:18:54,892 - DEBUG - VRF ids for VN ctest-vn-80320753: {}
2025-05-08 02:18:54,947 - DEBUG - Services list from nova: [