2025-01-14 10:56:18,424 - INFO - Domain Default found not creating
2025-01-14 10:56:18,591 - INFO - Project ctest-TestBasicPolicy-36864978 not found, creating it
2025-01-14 10:56:19,086 - INFO - Created Project:ctest-TestBasicPolicy-36864978, ID : b5df5093-f8b0-4e15-b65b-97ede0e5dbe9
2025-01-14 10:56:20,645 - INFO - ================================================================================
2025-01-14 10:56:20,645 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 10:56:20,645 - 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-01-14 10:56:20,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.6': '0'}} with
2025-01-14 10:56:20,903 - INFO - Initial checks done. Running the testcase now
2025-01-14 10:56:20,903 - INFO -
2025-01-14 10:56:21,553 - DEBUG - Response for create_network : {'network': {'id': '5c2de20a-cce0-4130-91f0-cc0d85fd9792', 'name': 'ctest-vn-47709838', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-47709838'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 10:56:21,779 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cb1af3c-670e-406d-9f04-e0582ff16e8c', 'name': '', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'network_id': '5c2de20a-cce0-4130-91f0-cc0d85fd9792', 'ip_version': 4, 'cidr': '201.36.224.64/26', 'allocation_pools': [{'start': '201.36.224.66', 'end': '201.36.224.126'}], 'gateway_ip': '201.36.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.36.224.66', 'tags': [], 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9'}}
2025-01-14 10:56:21,802 - INFO - Created VN ctest-vn-47709838
2025-01-14 10:56:21,856 - DEBUG - VN ctest-vn-47709838 UUID is 5c2de20a-cce0-4130-91f0-cc0d85fd9792
2025-01-14 10:56:22,194 - DEBUG - Response for create_network : {'network': {'id': '473d0d7e-ebcc-47a8-a0ec-887fc76a4559', 'name': 'ctest-vn-99486154', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-99486154'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 10:56:22,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c0d011b-9390-4a32-926c-87ac33b0a99e', 'name': '', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'network_id': '473d0d7e-ebcc-47a8-a0ec-887fc76a4559', 'ip_version': 4, 'cidr': '111.144.152.64/26', 'allocation_pools': [{'start': '111.144.152.66', 'end': '111.144.152.126'}], 'gateway_ip': '111.144.152.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.144.152.66', 'tags': [], 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9'}}
2025-01-14 10:56:22,441 - INFO - Created VN ctest-vn-99486154
2025-01-14 10:56:22,496 - DEBUG - VN ctest-vn-99486154 UUID is 473d0d7e-ebcc-47a8-a0ec-887fc76a4559
2025-01-14 10:56:22,620 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838, 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-36864978:ctest-vn-99486154, 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-01-14 10:56:22,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c2de20a-cce0-4130-91f0-cc0d85fd9792', 'name': 'ctest-vn-47709838', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cb1af3c-670e-406d-9f04-e0582ff16e8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-47709838'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692']], 'subnet_ipam': [{'subnet_cidr': '201.36.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 10:56:23,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '473d0d7e-ebcc-47a8-a0ec-887fc76a4559', 'name': 'ctest-vn-99486154', 'tenant_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'project_id': 'b5df5093f8b04e15b65b97ede0e5dbe9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c0d011b-9390-4a32-926c-87ac33b0a99e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-vn-99486154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692']], 'subnet_ipam': [{'subnet_cidr': '111.144.152.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 10:56:23,360 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-14 10:56:23,693 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-14 10:56:23,727 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67
2025-01-14 10:56:23,747 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9
2025-01-14 10:56:23,835 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792
2025-01-14 10:56:23,854 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792
2025-01-14 10:56:23,868 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703
2025-01-14 10:56:23,878 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703
2025-01-14 10:56:23,887 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/9c7e895e-de46-43c2-af37-3ce18c1c991a
2025-01-14 10:56:23,897 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 10:56:23,897 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792
2025-01-14 10:56:23,912 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703
2025-01-14 10:56:23,933 - INFO - Verified VN network id 8 for VN 5c2de20a-cce0-4130-91f0-cc0d85fd9792
2025-01-14 10:56:23,934 - INFO - Verifications in API Server for VN ctest-vn-47709838 passed
2025-01-14 10:56:23,934 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792
2025-01-14 10:56:23,949 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703
2025-01-14 10:56:23,958 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/194c4fb8-5e3d-48af-80f5-c3a85d1e7703
2025-01-14 10:56:23,968 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/9c7e895e-de46-43c2-af37-3ce18c1c991a
2025-01-14 10:56:23,984 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36864978', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6642213561456148784', 'uuid-lslong': '10516129488364738450'}, 'enable': 'true', 'created': '2025-01-14T10:56:21', 'last-modified': '2025-01-14T10:56:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074681'}
2025-01-14 10:56:23,994 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 10:56:23,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47709838 passed
2025-01-14 10:56:23,994 - DEBUG - ====Verifying policy data for ctest-vn-47709838 in API_Server ======
2025-01-14 10:56:23,994 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-14 10:56:24,003 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67
2025-01-14 10:56:24,022 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9
2025-01-14 10:56:24,112 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c2de20a-cce0-4130-91f0-cc0d85fd9792
2025-01-14 10:56:24,127 - DEBUG - ==>Verifying data for policy with id: 27c83077-80be-4173-84cf-8af8b75ec8b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692']
2025-01-14 10:56:24,127 - INFO - VN ctest-vn-47709838 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 10:56:24,127 - DEBUG - Verifying the vn in opserver
2025-01-14 10:56:24,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838 virtual network link through opserver 10.0.0.29
2025-01-14 10:56:24,128 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-14 10:56:24,426 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-14 10:56:24,489 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838?flat'}
2025-01-14 10:56:24,489 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-47709838 is found in opserver
2025-01-14 10:56:24,502 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 10:56:24,511 - DEBUG - VRF ids for VN ctest-vn-47709838: {}
2025-01-14 10:56:24,511 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-14 10:56:24,518 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67
2025-01-14 10:56:24,533 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9
2025-01-14 10:56:24,610 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559
2025-01-14 10:56:24,626 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559
2025-01-14 10:56:24,636 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68
2025-01-14 10:56:24,646 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68
2025-01-14 10:56:24,656 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/05beccb2-bf8c-4cea-b46b-2ef960306f33
2025-01-14 10:56:24,666 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 10:56:24,666 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559
2025-01-14 10:56:24,684 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68
2025-01-14 10:56:24,708 - INFO - Verified VN network id 9 for VN 473d0d7e-ebcc-47a8-a0ec-887fc76a4559
2025-01-14 10:56:24,708 - INFO - Verifications in API Server for VN ctest-vn-99486154 passed
2025-01-14 10:56:24,709 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559
2025-01-14 10:56:24,724 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68
2025-01-14 10:56:24,733 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/ceb6a32e-bd88-4de4-99e7-00300ec13e68
2025-01-14 10:56:24,741 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/05beccb2-bf8c-4cea-b46b-2ef960306f33
2025-01-14 10:56:24,754 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36864978', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5133273989045307304', 'uuid-lslong': '11595793222960039257'}, 'enable': 'true', 'created': '2025-01-14T10:56:22', 'last-modified': '2025-01-14T10:56:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.595225'}
2025-01-14 10:56:24,761 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 10:56:24,761 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99486154 passed
2025-01-14 10:56:24,761 - DEBUG - ====Verifying policy data for ctest-vn-99486154 in API_Server ======
2025-01-14 10:56:24,761 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-14 10:56:24,769 - DEBUG - Requesting: http://10.0.0.29:8082/domain/7567f67d-806d-4f77-9273-6dfbb4ad0d67
2025-01-14 10:56:24,783 - DEBUG - Requesting: http://10.0.0.29:8082/project/b5df5093-f8b0-4e15-b65b-97ede0e5dbe9
2025-01-14 10:56:24,867 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/473d0d7e-ebcc-47a8-a0ec-887fc76a4559
2025-01-14 10:56:24,877 - DEBUG - ==>Verifying data for policy with id: 27c83077-80be-4173-84cf-8af8b75ec8b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-36864978', 'ctest-policy-allow-all-85666692']
2025-01-14 10:56:24,877 - INFO - VN ctest-vn-99486154 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 10:56:24,877 - DEBUG - Verifying the vn in opserver
2025-01-14 10:56:24,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154 virtual network link through opserver 10.0.0.29
2025-01-14 10:56:24,877 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-14 10:56:24,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154?flat'}
2025-01-14 10:56:24,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36864978:ctest-vn-99486154 is found in opserver
2025-01-14 10:56:24,909 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 10:56:24,915 - DEBUG - VRF ids for VN ctest-vn-99486154: {}
2025-01-14 10:56:24,981 - DEBUG - Services list from nova: [