2025-07-07 02:10:31,578 - INFO - Domain Default found not creating
2025-07-07 02:10:31,728 - INFO - Project ctest-TestBasicPolicy-79981565 not found, creating it
2025-07-07 02:10:32,214 - INFO - Created Project:ctest-TestBasicPolicy-79981565, ID : 088207fe-8d00-46c1-b0de-53e806d61581
2025-07-07 02:10:33,819 - INFO - ================================================================================
2025-07-07 02:10:33,819 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 02:10:33,819 - 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-07-07 02:10:34,080 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.192': '0'}} with
2025-07-07 02:10:34,080 - INFO - Initial checks done. Running the testcase now
2025-07-07 02:10:34,080 - INFO -
2025-07-07 02:10:34,688 - DEBUG - Response for create_network : {'network': {'id': '98077460-7ded-4aa5-a14a-63dda1699f8b', 'name': 'ctest-vn-57504074', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-57504074'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:10:34,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '706ead3b-086d-40b5-84e1-78796011e77d', 'name': '', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'network_id': '98077460-7ded-4aa5-a14a-63dda1699f8b', 'ip_version': 4, 'cidr': '88.167.252.64/26', 'allocation_pools': [{'start': '88.167.252.66', 'end': '88.167.252.126'}], 'gateway_ip': '88.167.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.167.252.66', 'tags': [], 'project_id': '088207fe8d0046c1b0de53e806d61581'}}
2025-07-07 02:10:34,920 - INFO - Created VN ctest-vn-57504074
2025-07-07 02:10:34,973 - DEBUG - VN ctest-vn-57504074 UUID is 98077460-7ded-4aa5-a14a-63dda1699f8b
2025-07-07 02:10:35,273 - DEBUG - Response for create_network : {'network': {'id': '897d7beb-6081-4d99-ba72-517de788f112', 'name': 'ctest-vn-67585025', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-67585025'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:10:35,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '39e7a11d-323d-4ae7-996c-db995ed119c3', 'name': '', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'network_id': '897d7beb-6081-4d99-ba72-517de788f112', 'ip_version': 4, 'cidr': '40.218.208.0/26', 'allocation_pools': [{'start': '40.218.208.2', 'end': '40.218.208.62'}], 'gateway_ip': '40.218.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.218.208.2', 'tags': [], 'project_id': '088207fe8d0046c1b0de53e806d61581'}}
2025-07-07 02:10:35,464 - INFO - Created VN ctest-vn-67585025
2025-07-07 02:10:35,517 - DEBUG - VN ctest-vn-67585025 UUID is 897d7beb-6081-4d99-ba72-517de788f112
2025-07-07 02:10:35,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074, 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-79981565:ctest-vn-67585025, 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-07-07 02:10:35,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98077460-7ded-4aa5-a14a-63dda1699f8b', 'name': 'ctest-vn-57504074', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['706ead3b-086d-40b5-84e1-78796011e77d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-57504074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239']], 'subnet_ipam': [{'subnet_cidr': '88.167.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:10:36,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '897d7beb-6081-4d99-ba72-517de788f112', 'name': 'ctest-vn-67585025', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39e7a11d-323d-4ae7-996c-db995ed119c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-67585025'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239']], 'subnet_ipam': [{'subnet_cidr': '40.218.208.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:10:36,361 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-07 02:10:36,707 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-07 02:10:36,736 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236
2025-07-07 02:10:36,752 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581
2025-07-07 02:10:36,832 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b
2025-07-07 02:10:36,845 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b
2025-07-07 02:10:36,855 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e
2025-07-07 02:10:36,863 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e
2025-07-07 02:10:36,871 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f14af469-32c0-443d-8307-7374b683ba8c
2025-07-07 02:10:36,878 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 02:10:36,878 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b
2025-07-07 02:10:36,888 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e
2025-07-07 02:10:36,904 - INFO - Verified VN network id 8 for VN 98077460-7ded-4aa5-a14a-63dda1699f8b
2025-07-07 02:10:36,904 - INFO - Verifications in API Server for VN ctest-vn-57504074 passed
2025-07-07 02:10:36,904 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b
2025-07-07 02:10:36,914 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e
2025-07-07 02:10:36,922 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e
2025-07-07 02:10:36,929 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f14af469-32c0-443d-8307-7374b683ba8c
2025-07-07 02:10:36,942 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79981565', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10954852576380406437', 'uuid-lslong': '11622211591929962379'}, 'enable': 'true', 'created': '2025-07-07T02:10:34', 'last-modified': '2025-07-07T02:10:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021122'}
2025-07-07 02:10:36,950 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 02:10:36,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57504074 passed
2025-07-07 02:10:36,950 - DEBUG - ====Verifying policy data for ctest-vn-57504074 in API_Server ======
2025-07-07 02:10:36,950 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-07 02:10:36,957 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236
2025-07-07 02:10:36,969 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581
2025-07-07 02:10:37,044 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b
2025-07-07 02:10:37,057 - DEBUG - ==>Verifying data for policy with id: 20bbdea5-d576-45f3-b5b7-b7fbbdbd2d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239']
2025-07-07 02:10:37,057 - INFO - VN ctest-vn-57504074 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 02:10:37,057 - DEBUG - Verifying the vn in opserver
2025-07-07 02:10:37,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074 virtual network link through opserver 10.0.0.65
2025-07-07 02:10:37,057 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-07 02:10:37,389 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-07 02:10:37,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074?flat'}
2025-07-07 02:10:37,454 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074 is found in opserver
2025-07-07 02:10:37,468 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 02:10:37,473 - DEBUG - VRF ids for VN ctest-vn-57504074: {}
2025-07-07 02:10:37,474 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-07 02:10:37,480 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236
2025-07-07 02:10:37,493 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581
2025-07-07 02:10:37,566 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112
2025-07-07 02:10:37,580 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112
2025-07-07 02:10:37,592 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca
2025-07-07 02:10:37,599 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca
2025-07-07 02:10:37,607 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/89355c76-c1bf-4b01-ac8e-0b544d7c95c4
2025-07-07 02:10:37,617 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 02:10:37,617 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112
2025-07-07 02:10:37,631 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca
2025-07-07 02:10:37,649 - INFO - Verified VN network id 9 for VN 897d7beb-6081-4d99-ba72-517de788f112
2025-07-07 02:10:37,650 - INFO - Verifications in API Server for VN ctest-vn-67585025 passed
2025-07-07 02:10:37,650 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112
2025-07-07 02:10:37,661 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca
2025-07-07 02:10:37,669 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca
2025-07-07 02:10:37,677 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/89355c76-c1bf-4b01-ac8e-0b544d7c95c4
2025-07-07 02:10:37,689 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79981565', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9907211006151576985', 'uuid-lslong': '13434890239596884242'}, 'enable': 'true', 'created': '2025-07-07T02:10:35', 'last-modified': '2025-07-07T02:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.514875'}
2025-07-07 02:10:37,696 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 02:10:37,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67585025 passed
2025-07-07 02:10:37,697 - DEBUG - ====Verifying policy data for ctest-vn-67585025 in API_Server ======
2025-07-07 02:10:37,697 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-07-07 02:10:37,703 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236
2025-07-07 02:10:37,716 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581
2025-07-07 02:10:37,797 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112
2025-07-07 02:10:37,816 - DEBUG - ==>Verifying data for policy with id: 20bbdea5-d576-45f3-b5b7-b7fbbdbd2d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239']
2025-07-07 02:10:37,816 - INFO - VN ctest-vn-67585025 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 02:10:37,816 - DEBUG - Verifying the vn in opserver
2025-07-07 02:10:37,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025 virtual network link through opserver 10.0.0.65
2025-07-07 02:10:37,816 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-07-07 02:10:37,827 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025?flat'}
2025-07-07 02:10:37,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025 is found in opserver
2025-07-07 02:10:37,839 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 02:10:37,845 - DEBUG - VRF ids for VN ctest-vn-67585025: {}
2025-07-07 02:10:37,906 - DEBUG - Services list from nova: [